MDL-37085 changed echo to return - little bug fix
[moodle.git] / course / renderer.php
index 7147c08..67daa0d 100644 (file)
@@ -796,7 +796,7 @@ class core_course_renderer extends plugin_renderer_base {
                 $ci = new condition_info($mod);
                 $fullinfo = $ci->get_full_information();
                 if($fullinfo) {
-                    echo '<div class="availabilityinfo '.$hidinfoclass.'">'.get_string($mod->showavailability
+                    return '<div class="availabilityinfo '.$hidinfoclass.'">'.get_string($mod->showavailability
                         ? 'userrestriction_visible'
                         : 'userrestriction_hidden','condition',
                         $fullinfo).'</div>';