Permalink
Browse files

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

  • Loading branch information...
1 parent 5c8860f commit fc427a8cbc0797c811273153236ace3db674b99c @ankitagarwal ankitagarwal committed Mar 12, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/lib.php
View
@@ -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) {

0 comments on commit fc427a8

Please sign in to comment.