From: danmarsden Date: Sun, 7 Dec 2008 21:54:49 +0000 (+0000) Subject: skip content structure page:MDL-11908: skip content structure page with multiple... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7325b0169160bae25676e42d9b97bfd997c8cd09;p=moodle.git skip content structure page:MDL-11908: skip content structure page with multiple scos - if a teacher has set to skip, it should skip! - even with multiple scos. --- diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index e36d6a058e..d6f363702a 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -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) {