mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue