fixed marker handling, no sesskey error anymore - bug #5340
This commit is contained in:
@@ -30,7 +30,7 @@ if ($topic != -1) {
|
||||
}
|
||||
}
|
||||
|
||||
if (isteacher($course->id) and isset($marker) and confirm_sesskey()) {
|
||||
if (isteacher($course->id) and !empty($marker) and confirm_sesskey()) {
|
||||
$course->marker = $marker;
|
||||
if (! set_field("course", "marker", $marker, "id", $course->id)) {
|
||||
error("Could not mark that topic for this course");
|
||||
|
||||
Reference in New Issue
Block a user