Browse files

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

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents 601054d + c1607b5 commit 665f13c50c5e5ce5244849ea8d975ca3201a6e95 @stronk7 stronk7 committed Mar 20, 2013
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) {

0 comments on commit 665f13c

Please sign in to comment.