mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-16055 PHP warning when creating new scorm activity. backport 1.8.
This commit is contained in:
parent
740972a826
commit
4bea11eae5
1 changed files with 5 additions and 1 deletions
|
@ -275,7 +275,11 @@ function scorm_get_manifest($blocks,$scoes) {
|
||||||
$mapinfos = array();
|
$mapinfos = array();
|
||||||
foreach ($objective['children'] as $objectiveparam) {
|
foreach ($objective['children'] as $objectiveparam) {
|
||||||
if ($objectiveparam['name']=='IMSSS:MINNORMALIZEDMEASURE') {
|
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') {
|
if ($objectiveparam['name']=='IMSSS:MAPINFO') {
|
||||||
$mapinfo = new stdClass();
|
$mapinfo = new stdClass();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue