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.

This commit is contained in:
danmarsden
2008-12-07 21:54:49 +00:00
parent fd01125fc2
commit 7325b01691
+1 -1
View File
@@ -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) {