From b4a93f74bf52e75c38ce9d79735f3676c976ce7a Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 27 Apr 2006 20:06:41 +0000 Subject: [PATCH] fixed marker handling, no sesskey error anymore - bug #5340 --- course/format/lams/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/format/lams/format.php b/course/format/lams/format.php index c0b74a2488..857017e725 100644 --- a/course/format/lams/format.php +++ b/course/format/lams/format.php @@ -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"); -- 2.39.5