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:33:32 +08:00 committed by Eloy Lafuente (stronk7)
parent 92f2403bf3
commit 9e586967a6

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.