]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed "sesskey" error in bug 5139
authormoodler <moodler>
Mon, 10 Apr 2006 07:49:55 +0000 (07:49 +0000)
committermoodler <moodler>
Mon, 10 Apr 2006 07:49:55 +0000 (07:49 +0000)
course/format/topics/format.php

index ad7be023e47e250c256b90da2be4d1143cbc1fd6..8f76d1d75ebc07f9b4272e679a045286750f8539 100644 (file)
@@ -29,7 +29,7 @@
         }
     }
 
-    if (isteacher($course->id) and isset($marker) and confirm_sesskey()) {
+    if ($marker && 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");