Skip to content
Browse files

SCORM MDL-26942 - fix ending of lists.

  • Loading branch information...
1 parent b6c88d7 commit 8cb7096bc55701a907c5cbaab126e8020050b753 @danmarsden danmarsden committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/locallib.php
View
2 mod/scorm/locallib.php
@@ -1310,7 +1310,7 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco
$i = $level;
$closelist = '';
while (($i > 0) && ($parents[$level] != $sco->parent)) {
- if ($i === 1) {
+ if ($i === 1 && $level > 1) {
$closelist .= "\t\t</ul></li>\n";
} else {
$closelist .= "\t</li></ul></li>\n";

0 comments on commit 8cb7096

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