Skip to content

Commit

Permalink
MDL-18644 Variables used without $-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Mar 23, 2009
1 parent bd294d2 commit 68a3d81
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mod/scorm/datamodels/sequencinglib.php
Expand Up @@ -1628,7 +1628,7 @@ function scorm_seq_choice_sequencing($sco,$userid,$seq){
$sib = scorm_get_siblings($seq->currentactivity);
$pos = array_search($sib, $sco);

if (pos !== false){
if ($pos !== false){

$siblings = array_slice($sib, 0, $pos-1);

Expand Down Expand Up @@ -1853,9 +1853,9 @@ function scorm_seq_choice_flow_tree ($constrained, $traverse, $seq){
}
else{
$i=0;
while(i < sizeof($avchildren)){
if ($avchildren [i]->id == $constrained->id){
$seq->nextactivity = $avchildren [i+1];
while($i < sizeof($avchildren)){
if ($avchildren [$i]->id == $constrained->id){
$seq->nextactivity = $avchildren [$i+1];
return $seq;
}
else{
Expand All @@ -1880,8 +1880,8 @@ function scorm_seq_choice_flow_tree ($constrained, $traverse, $seq){
else{
$i=sizeof($avchildren)-1;
while($i >=0){
if ($avchildren [i]->id == $constrained->id){
$seq->nextactivity = $avchildren [i-1];
if ($avchildren [$i]->id == $constrained->id){
$seq->nextactivity = $avchildren [$i-1];
return $seq;
}
else{
Expand Down Expand Up @@ -2069,7 +2069,7 @@ function scorm_select_children_process($scoid,$userid){
$i = ($res->value)-1;
$children = scorm_get_children ($sco);

while (i>=0){
while ($i>=0){
$pos = array_rand($children);
array_push($childlist,$children [$pos]);
array_splice($children,$pos,1);
Expand Down Expand Up @@ -2113,7 +2113,7 @@ function scorm_randomize_children_process($scoid,$userid){
$i = sizeof($res)-1;
$children = $res->value;

while (i>=0){
while ($i>=0){
$pos = array_rand($children);
array_push($childlist,$children [$pos]);
array_splice($children,$pos,1);
Expand Down Expand Up @@ -2339,4 +2339,4 @@ function scorm_sequencing_exception($seq){



?>
?>

0 comments on commit 68a3d81

Please sign in to comment.