mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-38370 scorm: Fixing strict standard errors in outline report
This commit is contained in:
parent
8673a98d1d
commit
6e9d3c19e3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user