From 894446f7fd6ec75fde6d79e42defa2d127a9d2f2 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 14 Aug 2012 11:33:32 +0800 Subject: [PATCH] MDL-34539 course - allow negative section numbers This gives course format authors more flexibility. Thanks to Itamar Tzadok for the suggestion. --- course/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/view.php b/course/view.php index c7502059344..cb978d86ab4 100644 --- a/course/view.php +++ b/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.