]> git.mjollnir.org Git - moodle.git/commitdiff
skip content structure page:MDL-11908: skip content structure page with multiple...
authordanmarsden <danmarsden>
Sun, 7 Dec 2008 21:54:49 +0000 (21:54 +0000)
committerdanmarsden <danmarsden>
Sun, 7 Dec 2008 21:54:49 +0000 (21:54 +0000)
mod/scorm/locallib.php

index e36d6a058e239a9355800fc246b7de20fd3d0ea5..d6f363702a9fb1386e1b36cb2b1ff95c83e47203 100755 (executable)
@@ -783,7 +783,7 @@ function scorm_simple_play($scorm,$user) {
 
     $scoes = $DB->get_records_select('scorm_scoes', 'scorm = ? AND launch <> ?', array($scorm->id, $DB->sql_empty()));
 
-    if ($scoes && (count($scoes) == 1)) {
+    if ($scoes) {
         if ($scorm->skipview >= 1) {
             $sco = current($scoes);
             if (scorm_get_tracks($sco->id,$user->id) === false) {