diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 2aaae4e4cc2..a756bd7bca1 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -145,7 +145,7 @@ class qformat_xml extends qformat_default { $qo->qtype = MULTIANSWER; $qo->course = $this->course; - if (!empty($thequestion)) { + if (!empty($questions)) { $qo->name = $this->import_text( $questions['#']['name'][0]['#']['text'] ); }