Merge branch 'mdl27_MDL-46408' of https://github.com/danmarsden/moodle into MOODLE_27_STABLE

This commit is contained in:
Andrew Nicols
2015-02-24 11:36:49 +08:00
+3 -1
View File
@@ -564,7 +564,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;
}