}
}
-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");
}
}
- 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");
$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)) {