MDL-25104 Fixing some other error about $files in $instructions param of numerical
[moodle.git] / question / format / xml / format.php
index 82dbd5d..45f05a9 100755 (executable)
@@ -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['#'];