Included support to DESCRIPTION qtype.

Mainly, do nothing, but it's supported now :-)
This commit is contained in:
stronk7 2003-07-06 09:21:56 +00:00
parent bca64a122b
commit 96e1bd4a55
2 changed files with 8 additions and 0 deletions

View File

@ -148,6 +148,8 @@
$status = quiz_backup_match($bf,$preferences,$question->id);
} else if ($question->qtype == "6") {
$status = quiz_backup_randomsamatch($bf,$preferences,$question->id);
} else if ($question->qtype == "7") {
//Description question. Nothing to write.
}
//End question
$status =fwrite ($bf,end_tag("QUESTION",5,true));

View File

@ -186,6 +186,8 @@
$status = quiz_restore_match($oldid,$newid,$que_info,$restore);
} else if ($question->qtype == "6") {
$status = quiz_restore_randomsamatch($oldid,$newid,$que_info,$restore);
} else if ($question->qtype == "7") {
//Description question. Nothing to do.
}
} else {
$status = false;
@ -880,6 +882,10 @@
}
$response->answer = $answer_field;
break;
case 7: //DESCRIPTION QTYPE
//Nothing to do (there is no awser to this qtype)
//But this case must exist !!
break;
default: //UNMATCHED QTYPE.
//This is an error (unimplemented qtype)
$status = false;