Browse files

MDL-34539 course - allow negative section numbers

This gives course format authors more flexibility.

Thanks to Itamar Tzadok for the suggestion.
  • Loading branch information...
1 parent e6aac11 commit 894446f7fd6ec75fde6d79e42defa2d127a9d2f2 @danpoltawski danpoltawski committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/view.php
View
2 course/view.php
@@ -97,7 +97,7 @@
$logparam = 'id='. $course->id;
$loglabel = 'view';
$infoid = $course->id;
- if(!empty($section)) {
+ if ($section and $section > 0) {
$loglabel = 'view section';
// Get section details and check it exists.

0 comments on commit 894446f

Please sign in to comment.