From 957566eb285203b03e74e202f265eac1cb7418b4 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 5 Jul 2013 12:07:48 +1200 Subject: [PATCH] MDL-40512 SCORM: prevent undefined warning --- mod/scorm/locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 7e6cea5a770..45715d4300e 100644 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -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);