mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-29662 quiz overrides: use proper course value (was php notice).
This commit is contained in:
parent
9569ba7ed8
commit
3f4e07ef3c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue