diff --git a/question/type/ddmarker/question.php b/question/type/ddmarker/question.php index f75e0576a7a..3ede3e015d0 100644 --- a/question/type/ddmarker/question.php +++ b/question/type/ddmarker/question.php @@ -358,7 +358,7 @@ class qtype_ddmarker_question extends qtype_ddtoimage_question_base { $goodhits[] = "{".$place->summarise()." -> ". $choice->summarise(). "}"; } } - if (count($goodhits)) { + if (count($goodhits) == 0) { return null; } return implode(', ', $goodhits);