backup MDL-22142 P9 - Properly check section/cm in backup.php

This commit is contained in:
Sam Hemelryk 2010-05-02 02:25:26 +00:00
parent 05f5ae3e7a
commit a2190f5c22

View File

@ -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;
}