fixed marker handling, no sesskey error anymore - bug #5340

This commit is contained in:
skodak
2006-04-27 20:06:41 +00:00
parent 7071d6d908
commit b4a93f74bf
+1 -1
View File
@@ -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");