MDL-16055 PHP warning when creating new scorm activity.
This commit is contained in:
@@ -275,7 +275,11 @@ function scorm_get_manifest($blocks,$scoes) {
|
||||
$mapinfos = array();
|
||||
foreach ($objective['children'] as $objectiveparam) {
|
||||
if ($objectiveparam['name']=='IMSSS:MINNORMALIZEDMEASURE') {
|
||||
$objectivedata->minnormalizedmeasure = $objectiveparam['tagData'];
|
||||
if (isset($objectiveparam['tagData'])) {
|
||||
$objectivedata->minnormalizedmeasure = $objectiveparam['tagData'];
|
||||
} else {
|
||||
$objectivedata->minnormalizedmeasure = 0;
|
||||
}
|
||||
}
|
||||
if ($objectiveparam['name']=='IMSSS:MAPINFO') {
|
||||
$mapinfo = new stdClass();
|
||||
@@ -794,5 +798,4 @@ class xml2Array {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user