diff --git a/question/format/hotpot/format.php b/question/format/hotpot/format.php index e701b5a955b..83f0a5bd509 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -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) {