Bug #5716 - Impossible to turn off highlighted current topic; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-06-03 23:49:15 +00:00
parent b841722573
commit f4f0bc84cb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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
View File
@@ -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)) {