Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-38370-m23' of git://github.com/ankitagarwal/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
commit 665f13c50c5e5ce5244849ea8d975ca3201a6e95 2 parents 601054d + c1607b5
@stronk7 stronk7 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.