Skip to content

Commit

Permalink
MDL-38370 scorm: Fixing strict standard errors in outline report
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Mar 12, 2013
1 parent 8673a98 commit 6e9d3c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/scorm/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
array($scorm->id), 'id', 'id,identifier,title')) { array($scorm->id), 'id', 'id,identifier,title')) {
if (count($orgs) <= 1) { if (count($orgs) <= 1) {
unset($orgs); unset($orgs);
$orgs[]->identifier = ''; $orgs = array();
$org = new stdClass();
$org->identifier = '';
$orgs[] = $org;
} }
$report .= '<div class="mod-scorm">'."\n"; $report .= '<div class="mod-scorm">'."\n";
foreach ($orgs as $org) { foreach ($orgs as $org) {
Expand Down

0 comments on commit 6e9d3c1

Please sign in to comment.