Skip to content

Commit

Permalink
MDL-40512 SCORM: prevent undefined warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jul 5, 2013
1 parent 4c6f1ec commit 353d91f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/locallib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 353d91f

Please sign in to comment.