From 6e9d3c19e312531c3323619e8b7ee144e2e36908 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 f9c2b5ce28a..4449ec7958b 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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 .= '
'."\n"; foreach ($orgs as $org) {