diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 82dbd5d8f27..45f05a9b99f 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -728,7 +728,6 @@ class qformat_xml extends qformat_default { $files = $this->getpath($instructions, array('0', '#', 'file'), array()); $qo->instructionsfiles = array(); - $files = $instructions[0]['#']['file']; foreach ($files as $file) { $data = new stdclass; $data->content = $file['#'];