Permalink
Browse files

Changed some data from scorm_scoes_track to scorm_scoes_data

  • Loading branch information...
1 parent 46566dd commit d7309cf5729f918d3b2c8d98d5713dcc2c629b0f csantossaenz committed May 4, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/scorm/datamodels/sequencinglib.php
@@ -1556,7 +1556,7 @@ function scorm_seq_choice_sequencing($sco,$userid,$seq){
if ($sco->parent != '/') {
$parent = scorm_sco_get_parent ($sco);
- if ( !get_record('scorm_scoes_track','scoid',$parentid->id,'userid',$userid,'element','sequencingcontrolchoice')){
+ if ( (isset($parent->choice) && ($parent->choice == false)){
$seq->delivery = null;
$seq->exception = 'SB.2.9-4';
return $seq;
@@ -1653,7 +1653,7 @@ function scorm_seq_choice_sequencing($sco,$userid,$seq){
foreach ($curtarget as $activ){
$i++;
if ($i != sizeof($curtarget)){
- if ( !get_record('scorm_scoes_track','scoid',$activ->id,'userid',$userid,'element','sequencingcontrolchoiceexit')){
+ if ( (isset($activ->choiceexit) && ($activ->choiceexit == false)){
$seq->delivery = null;
$seq->exception = 'SB.2.9-7';
return $seq;
@@ -1675,7 +1675,7 @@ function scorm_seq_choice_sequencing($sco,$userid,$seq){
$constrained = null;
foreach ($curcommon as $acti){
- if ( !get_record('scorm_scoes_track','scoid',$activ->id,'userid',$userid,'element','sequencingcontrolchoiceexit')){
+ if ( (isset($activ->choiceexit) && ($activ->choiceexit == false)){
$seq->delivery = null;
$seq->exception = 'SB.2.9-7';
return $seq;

0 comments on commit d7309cf

Please sign in to comment.