From b61670c7a7cfcf0dc34347e1b55b533639faea11 Mon Sep 17 00:00:00 2001 From: Michael Aherne Date: Wed, 19 Sep 2012 12:56:08 +0100 Subject: [PATCH] MDL-35321 course sections Enable reset of grouping access --- course/editsection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/editsection.php b/course/editsection.php index 056aac5c6f7..549bd981a1e 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -79,7 +79,7 @@ if ($mform->is_cancelled()){ if (!empty($CFG->enableavailability)) { $section->availablefrom = $data->availablefrom; $section->availableuntil = $data->availableuntil; - if (!empty($data->groupingid)) { + if (isset($data->groupingid)) { $section->groupingid = $data->groupingid; } $section->showavailability = $data->showavailability;