From ce557a6eaca7acb5270c058d3ba04127bdcd1a2e Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 26 Apr 2004 09:28:28 +0000 Subject: [PATCH] Rollback the previous change: I introduced a bug by mistake! :/ But the system is a bit... strange... shouldn't the "editing mode" flag be propagated in the session variables or something? It confused me having to click "Edit" a second time after I 'd just clicked it in the course view. --- course/groups.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/course/groups.php b/course/groups.php index 684b462cea..2d3161c9a1 100644 --- a/course/groups.php +++ b/course/groups.php @@ -20,10 +20,12 @@ } if (isteacheredit($course->id)) { - if (isset($_GET['edit']) && $edit == "on") { - $USER->groupsediting = true; - } else { - $USER->groupsediting = false; + if (isset($_GET['edit'])) { + if($edit == "on") { + $USER->groupsediting = true; + } else { + $USER->groupsediting = false; + } } } else { $USER->groupsediting = false; -- 2.39.5