mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
92f2403bf3
commit
9e586967a6
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user