mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-46408 mod_scorm: check param is set before using.
The default org is only set if it exists in the imsmanifest.xml
This commit is contained in:
parent
95751e81ac
commit
a544661398
@ -589,7 +589,9 @@ function scorm_parse_scorm(&$scorm, $manifest) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($defaultorgid) && empty($firstinorg) && $newitem->parent == $scoes->defaultorg) {
|
||||
if (!empty($defaultorgid) && !empty($scoes->defaultorg) && empty($firstinorg) &&
|
||||
$newitem->parent == $scoes->defaultorg) {
|
||||
|
||||
$firstinorg = $sortorder;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user