Avoided some excess of "QUESTION_VERSIONS" ;-)

This commit is contained in:
stronk7 2005-03-23 23:32:51 +00:00
parent 1909875912
commit a9b1b60bee
2 changed files with 3 additions and 3 deletions

View file

@ -662,7 +662,7 @@
//Iterate over each question_version //Iterate over each question_version
foreach ($quiz_question_versions as $que_ver) { foreach ($quiz_question_versions as $que_ver) {
//Start question version //Start question version
$status =fwrite ($bf,start_tag("QUESTION_VERSIONS",5,true)); $status =fwrite ($bf,start_tag("QUESTION_VERSION",5,true));
//Print question_version contents //Print question_version contents
fwrite ($bf,full_tag("ID",6,false,$que_ver->id)); fwrite ($bf,full_tag("ID",6,false,$que_ver->id));
fwrite ($bf,full_tag("OLDQUESTION",6,false,$que_ver->oldquestion)); fwrite ($bf,full_tag("OLDQUESTION",6,false,$que_ver->oldquestion));
@ -670,7 +670,7 @@
fwrite ($bf,full_tag("USERID",6,false,$que_ver->userid)); fwrite ($bf,full_tag("USERID",6,false,$que_ver->userid));
fwrite ($bf,full_tag("TIMESTAMP",6,false,$que_ver->timestamp)); fwrite ($bf,full_tag("TIMESTAMP",6,false,$que_ver->timestamp));
//End question version //End question version
$status =fwrite ($bf,end_tag("QUESTION_VERSIONS",5,true)); $status =fwrite ($bf,end_tag("QUESTION_VERSION",5,true));
} }
//Write end tag //Write end tag
$status =fwrite ($bf,end_tag("QUESTION_VERSIONS",4,true)); $status =fwrite ($bf,end_tag("QUESTION_VERSIONS",4,true));

View file

@ -1452,7 +1452,7 @@
$status = true; $status = true;
//Get the quiz_question_versions array //Get the quiz_question_versions array
$versions = $info['MOD']['#']['QUESTION_VERSIONS']['0']['#']['QUESTION_VERSIONS']; $versions = $info['MOD']['#']['QUESTION_VERSIONS']['0']['#']['QUESTION_VERSION'];
//Iterate over question_versions //Iterate over question_versions
for($i = 0; $i < sizeof($versions); $i++) { for($i = 0; $i < sizeof($versions); $i++) {