From: tjhunt Date: Wed, 14 Jun 2006 15:32:55 +0000 (+0000) Subject: Corrected reference to lang string and fixed a notice. Merged from MOODLE_16_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ee800653e46cc427b22a272605ed0c7262c13cc7;p=moodle.git Corrected reference to lang string and fixed a notice. Merged from MOODLE_16_STABLE. --- diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 3be8941eb5..2aaae4e4cc 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -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 "

$notsupported

"; $qo = null; }