From 43beafaf310dccbf46628a1e3147dd57f5c65eb0 Mon Sep 17 00:00:00 2001 From: Matej Zilak Date: Mon, 13 Aug 2012 11:52:40 +0200 Subject: [PATCH] changed condition for displaying votes [note #30 - way too many queries!] --- Poll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Poll.php b/Poll.php index da67bf2..c47fbc1 100644 --- a/Poll.php +++ b/Poll.php @@ -311,7 +311,7 @@ public function render($template = null, $theme = null) 'alreadyAnswered' => $alreadyAnswered ); - if ($alreadyAnswered) { + if ($this->poll->isAnswersVisible()) { $fields = $this->poll->getFields(); $fieldCount = array();