diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 1e41d5db73f..59b75f67073 100644 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -1578,6 +1578,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);