From: defacer Date: Mon, 26 Apr 2004 09:28:28 +0000 (+0000) Subject: Rollback the previous change: I introduced a bug by mistake! :/ X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce557a6eaca7acb5270c058d3ba04127bdcd1a2e;p=moodle.git 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. --- 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;