Permalink
Browse files

MDL-33126 Fix error on first view of new course page

  • Loading branch information...
1 parent 4f7f2a8 commit 57a42a24ad69f8fbe7e8fd86678d2749e3163ae6 @sammarshallou sammarshallou committed May 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/format/renderer.php
@@ -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

0 comments on commit 57a42a2

Please sign in to comment.