Permalink
Browse files

MDL-37085 changed echo to return - little bug fix

  • Loading branch information...
1 parent 5425888 commit db82b130509bef8d1750b9b8f9261acdf8ef5bfb @marinaglancy marinaglancy committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/renderer.php
View
@@ -796,7 +796,7 @@ public function course_section_cm_availability(cm_info $mod, $displayoptions = a
$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>';

0 comments on commit db82b13

Please sign in to comment.