mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 15:40:17 +01:00
MDL-40512 SCORM: prevent undefined warning
This commit is contained in:
parent
f8e6e5bc30
commit
957566eb28
@ -1569,6 +1569,7 @@ function scorm_format_toc_for_treeview($user, $scorm, $scoes, $usertracks, $cmid
|
||||
$result = new stdClass();
|
||||
$result->prerequisites = true;
|
||||
$result->incomplete = true;
|
||||
$result->toc = '';
|
||||
|
||||
if (!$children) {
|
||||
$attemptsmade = scorm_get_attempt_count($user->id, $scorm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user