mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-29662 quiz overrides: use proper course value (was php notice).
This commit is contained in:
parent
130eddd24c
commit
393cadf205
@ -1153,7 +1153,7 @@ function quiz_update_events($quiz, $override = null) {
|
||||
if (!empty($quiz->coursemodule)) {
|
||||
$cmid = $quiz->coursemodule;
|
||||
} else {
|
||||
$cmid = get_coursemodule_from_instance('quiz', $quiz->id, $courseid)->id;
|
||||
$cmid = get_coursemodule_from_instance('quiz', $quiz->id, $quiz->course)->id;
|
||||
}
|
||||
|
||||
$event = new stdClass();
|
||||
|
Loading…
x
Reference in New Issue
Block a user