From e56122e9fd6da822b597eba23d070214b6fc2353 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 10 Apr 2006 07:49:55 +0000 Subject: [PATCH] FIxed "sesskey" error in bug 5139 --- course/format/topics/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/format/topics/format.php b/course/format/topics/format.php index ad7be023e4..8f76d1d75e 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -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"); -- 2.39.5