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

This commit is contained in:
Ankit Agarwal 2013-03-12 11:43:10 +08:00
parent 8673a98d1d
commit 6e9d3c19e3

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) {