MDL-38370 scorm: Fixing strict standard errors in outline report

This commit is contained in:
Ankit Agarwal
2013-03-13 16:02:38 +08:00
parent 5c8860f735
commit fc427a8cbc
+4 -1
View File
@@ -391,7 +391,10 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
array($scorm->id), 'id', 'id,identifier,title')) {
if (count($orgs) <= 1) {
unset($orgs);
$orgs[]->identifier = '';
$orgs = array();
$org = new stdClass();
$org->identifier = '';
$orgs[] = $org;
}
$report .= '<div class="mod-scorm">'."\n";
foreach ($orgs as $org) {