From c1607b53787eb2a4fa8f4a44c3f4d7771acf2bdf Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 12 Mar 2013 11:43:10 +0800 Subject: [PATCH] MDL-38370 scorm: Fixing strict standard errors in outline report --- mod/scorm/lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index dd410bbaa71..73774e48ae6 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -385,7 +385,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 .= '
'."\n"; foreach ($orgs as $org) {