Corrected reference to lang string.

This commit is contained in:
tjhunt
2006-06-14 15:30:55 +00:00
parent f12b2a7d5d
commit 1aa43ea576
+6 -2
View File
@@ -285,7 +285,11 @@ class qformat_xml extends qformat_default {
// header parts particular to matching
$qo->qtype = MATCH;
$qo->shuffleanswers = $question['#']['shuffleanswers'][0]['#'];
if (!empty($question['#']['shuffleanswers'])) {
$qo->shuffleanswers = $question['#']['shuffleanswers'][0]['#'];
} else {
$qo->shuffleanswers = false;
}
// get subquestions
$subquestions = $question['#']['subquestion'];
@@ -350,7 +354,7 @@ class qformat_xml extends qformat_default {
$qo = $this->import_multianswer( $question );
}
else {
$notsupported = get_string( 'xmlnotsupported','quiz',$question_type );
$notsupported = get_string( 'xmltypeunsupported','quiz',$question_type );
echo "<p>$notsupported</p>";
$qo = null;
}