From eb0e9d9da7e95b3be01caae2e8177dc14e57a2c4 Mon Sep 17 00:00:00 2001 From: csantossaenz Date: Thu, 12 Apr 2007 10:31:33 +0000 Subject: [PATCH] Fixed problem for the Moodle 1.7 scorm packages which didn't show the structure when you updated your version to 1.8. Now is possible to access to that structure and to each sco as well. --- mod/scorm/datamodels/scorm_12lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/scorm/datamodels/scorm_12lib.php b/mod/scorm/datamodels/scorm_12lib.php index b901fa76a8..4f6d1adbd8 100644 --- a/mod/scorm/datamodels/scorm_12lib.php +++ b/mod/scorm/datamodels/scorm_12lib.php @@ -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++) { -- 2.39.5