]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20184 when importing questions from Hot Potatoes files to Moodle question-bank...
authorgbateson <gbateson>
Mon, 31 Aug 2009 02:08:00 +0000 (02:08 +0000)
committergbateson <gbateson>
Mon, 31 Aug 2009 02:08:00 +0000 (02:08 +0000)
question/format/hotpot/format.php

index e701b5a955b7522838edd99601bfb592bb3d1230..83f0a5bd50990a75fe039aa40f54e1064bbf9e66 100644 (file)
@@ -102,7 +102,12 @@ class qformat_hotpot extends qformat_default {
                     notice("Unknown quiz type '$xml->quiztype'");
                 }
         } // end switch
-        return $questions;
+
+        if (count($questions)) {
+            return $questions;
+        } else {
+            return false;
+        }
     }
 
     function process_jcloze(&$xml, &$questions) {