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.
This commit is contained in:
defacer 2004-04-26 09:28:28 +00:00
parent dfd479fd67
commit ce557a6eac

View file

@ -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;