Bug #5716 - Impossible to turn off highlighted current topic; merged from MOODLE_16_STABLE
This commit is contained in:
@@ -30,7 +30,7 @@ if ($topic != -1) {
|
||||
}
|
||||
}
|
||||
|
||||
if (isteacher($course->id) and !empty($marker) and confirm_sesskey()) {
|
||||
if (($marker >=0) and isteacher($course->id) and confirm_sesskey()) {
|
||||
$course->marker = $marker;
|
||||
if (! set_field("course", "marker", $marker, "id", $course->id)) {
|
||||
error("Could not mark that topic for this course");
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ($marker && isteacher($course->id) && confirm_sesskey()) {
|
||||
if (($marker >=0) && isteacher($course->id) && confirm_sesskey()) {
|
||||
$course->marker = $marker;
|
||||
if (! set_field("course", "marker", $marker, "id", $course->id)) {
|
||||
error("Could not mark that topic for this course");
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
$studentview = optional_param('studentview', -1, PARAM_BOOL);
|
||||
$section = optional_param('section', 0, PARAM_INT);
|
||||
$move = optional_param('move', 0, PARAM_INT);
|
||||
$marker = optional_param('marker',0 , PARAM_INT);
|
||||
$marker = optional_param('marker',-1 , PARAM_INT);
|
||||
|
||||
|
||||
if (empty($id) && empty($name) && empty($idnumber)) {
|
||||
|
||||
Reference in New Issue
Block a user