mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
backup MDL-22142 P9 - Properly check section/cm in backup.php
This commit is contained in:
parent
05f5ae3e7a
commit
a2190f5c22
@ -43,7 +43,7 @@ if (!is_null($sectionid)) {
|
||||
$id = $sectionid;
|
||||
}
|
||||
if (!is_null($cmid)) {
|
||||
$cm = get_coursemodule_from_id(null, $cmid, $course->id, $sectionid, MUST_EXIST);
|
||||
$cm = get_coursemodule_from_id(null, $cmid, $course->id, false, MUST_EXIST);
|
||||
$type = backup::TYPE_1ACTIVITY;
|
||||
$id = $cmid;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user