}
break;
case 'ORGANIZATIONS':
- if (!isset($scoes->defaultorg)) {
+ if (!isset($scoes->defaultorg) && isset($block['attrs']['DEFAULT'])) {
$scoes->defaultorg = $block['attrs']['DEFAULT'];
}
$scoes = scorm_get_manifest($block['children'],$scoes);
$newitem->organization = $organization;
$standarddatas = array('parent', 'identifier', 'launch', 'scormtype', 'title');
foreach ($standarddatas as $standarddata) {
- $newitem->$standarddata = $item->$standarddata;
+ if (isset($item->$standarddata)) {
+ $newitem->$standarddata = $item->$standarddata;
+ }
}
// Insert the new SCO, and retain the link between the old and new for later adjustment