Skip to content
Browse files

MDL-40512 SCORM: prevent undefined warning

  • Loading branch information...
1 parent b5906ea commit ed928e942cb1933a27b16f950f85b7539f77d566 @danmarsden danmarsden committed Jul 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/scorm/locallib.php
View
1 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);

0 comments on commit ed928e9

Please sign in to comment.
Something went wrong with that request. Please try again.