mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
FIxed "sesskey" error in bug 5139
This commit is contained in:
parent
0dc2e2aefc
commit
e56122e9fd
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user