Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6e9d3c19e312531c3323619e8b7ee144e2e36908 1 parent 8673a98
@ankitagarwal ankitagarwal authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/lib.php
View
5 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 .= '<div class="mod-scorm">'."\n";
foreach ($orgs as $org) {
Please sign in to comment.
Something went wrong with that request. Please try again.