From bd3406adf9d3301cc6bbf8fd9953a5462bfc85b4 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Wed, 23 Nov 2011 20:16:39 +0700 Subject: [PATCH] MDL-47494 ddmarker: NOBUG fix to silly typo that was causing response summary not to be shown --- question/type/ddmarker/question.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);