diff --git a/question/type/multichoice/backup/moodle2/restore_qtype_multichoice_plugin.class.php b/question/type/multichoice/backup/moodle2/restore_qtype_multichoice_plugin.class.php
index 728541e..bf5a97c 100644
--- a/question/type/multichoice/backup/moodle2/restore_qtype_multichoice_plugin.class.php
+++ b/question/type/multichoice/backup/moodle2/restore_qtype_multichoice_plugin.class.php
@@ -95,15 +95,17 @@ class restore_qtype_multichoice_plugin extends restore_qtype_plugin {
         $orderarr = array();
         $responsesarr = array();
         $lists = explode(':', $answer);
-        // if only 1 list, answer is missing the order list, adjust
-        if (count($lists) == 1) {
+        // if only 1 list or no responses, answer is missing the order list, adjust
+        if (count($lists) == 1 || StrLen($lists[1]) == 0) {
             $lists[1] = $lists[0]; // here we have the responses
-            $lists[0] = '';        // here we have the order
+            $lists[0] = array();   // here we have no order
         }
-        // Map order
-        foreach (explode(',', $lists[0]) as $id) {
-            if ($newid = $this->get_mappingid('question_answer', $id)) {
-                $orderarr[] = $newid;
+        // Map order if elements
+        if (count($lists[0]) > 0) {
+            foreach (explode(',', $lists[0]) as $id) {
+                if ($newid = $this->get_mappingid('question_answer', $id)) {
+                    $orderarr[] = $newid;
+                }
             }
         }
         // Map responses
