]> git.mjollnir.org Git - moodle.git/commitdiff
fixed marker handling, no sesskey error anymore - bug #5340
authorskodak <skodak>
Thu, 27 Apr 2006 20:06:41 +0000 (20:06 +0000)
committerskodak <skodak>
Thu, 27 Apr 2006 20:06:41 +0000 (20:06 +0000)
course/format/lams/format.php

index c0b74a248827909edeb3524b28fefde466655efb..857017e7250940d5e6177e0f5d6d4407782c5c7c 100644 (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");