MDL-34539 course - allow negative section numbers

This gives course format authors more flexibility.

Thanks to Itamar Tzadok for the suggestion.
This commit is contained in:
Dan Poltawski
2012-08-14 11:34:19 +08:00
parent e6aac11d94
commit 894446f7fd
+1 -1
View File
@@ -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.