Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

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