Skip to content

Commit

Permalink
Merge branch 'MDL-38370-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 19, 2013
2 parents 6a32219 + 6e9d3c1 commit b35dd05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/scorm/lib.php
Original file line number 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')) {
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) {
Expand Down

0 comments on commit b35dd05

Please sign in to comment.