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.
}
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;