Skip to content

Commit

Permalink
fixed undefined $sco
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 18, 2010
1 parent 1978d7a commit 05923fc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions mod/scorm/datamodels/sequencinglib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,45 +1083,44 @@ function scorm_seq_sequencing ($scoid,$userid,$seq) {
switch ($seq->sequencing) {

case 'start':
//TODO: undefined $sco!
$seq = scorm_seq_start_sequencing($sco,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_start_sequencing($scoid,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;


break;

case 'resumeall':
$seq = scorm_seq_resume_sequencing($sco,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_resume_sequencing($scoid,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;



break;

case 'exit':
$seq = scorm_seq_exit_sequencing($sco,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_exit_sequencing($scoid,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;



break;

case 'retry':
$seq = scorm_seq_retry_sequencing($sco,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_retry_sequencing($scoid,$userid,$seq); //We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;


break;

case 'previous':
$seq = scorm_seq_previous_sequencing($sco,$userid,$seq);// We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_previous_sequencing($scoid,$userid,$seq);// We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;


break;

case 'choice':
$seq = scorm_seq_choice_sequencing($sco,$userid,$seq);// We'll see the parameters we have to send, this should update delivery and end
$seq = scorm_seq_choice_sequencing($scoid,$userid,$seq);// We'll see the parameters we have to send, this should update delivery and end
$seq->sequencing = true;


Expand Down

0 comments on commit 05923fc

Please sign in to comment.