Skip to content

Commit

Permalink
MDL-33126 Fix error on first view of new course page
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed May 21, 2012
1 parent 4f7f2a8 commit 57a42a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/format/renderer.php
Expand Up @@ -552,6 +552,8 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
// a section_info object - we will need at least the uservisible
// field in it.
$thissection->uservisible = true;
$thissection->availableinfo = null;
$thissection->showavailability = 0;
}
// Show the section if the user is permitted to access it, OR if it's not available
// but showavailability is turned on
Expand Down

0 comments on commit 57a42a2

Please sign in to comment.