FIxed "sesskey" error in bug 5139

This commit is contained in:
moodler 2006-04-10 07:49:55 +00:00
parent 0dc2e2aefc
commit e56122e9fd

View 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");