Skip to content

Commit f7528d3

Browse files
TobiGaPhMemmel
authored andcommitted
MBS-10257: Fix return empty error
1 parent 1cea8e8 commit f7528d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/output/course_output.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ protected function temp_course_section_cm_availability($mod) {
313313
// If there are multiple restrictions the tooltip on the subtile then shows them all.
314314
$ci = new \core_availability\info_module($mod);
315315
$fullinfo = $ci->get_full_information();
316-
return \core_availability\info::format_info($fullinfo, $this->course);
316+
// We use strip_tags as we display the HTML in a title attribute.
317+
return strip_tags(\core_availability\info::format_info($fullinfo, $this->course));
317318
}
318319
$availabilityclass = $this->format->get_output_classname('content\\cm\\availability');
319320
$availability = new $availabilityclass(

0 commit comments

Comments
 (0)