]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed problem for the Moodle 1.7 scorm packages which didn't show the structure when...
authorcsantossaenz <csantossaenz>
Thu, 12 Apr 2007 10:31:33 +0000 (10:31 +0000)
committercsantossaenz <csantossaenz>
Thu, 12 Apr 2007 10:31:33 +0000 (10:31 +0000)
mod/scorm/datamodels/scorm_12lib.php

index b901fa76a8395d09f2121604adbbd4717e1a5aa5..4f6d1adbd857e06702ffb9c2157e95f171d3562e 100644 (file)
@@ -218,6 +218,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
                     $isvisible = true;
                 }
             }
+            else{
+                               $isvisible = true;
+            }
             if ($parents[$level]!=$sco->parent) {
                 if ($newlevel = array_search($sco->parent,$parents)) {
                     for ($i=0; $i<($level-$newlevel); $i++) {