From 8f8931110b6d1144aebbfe2e818f28888df6f958 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sun, 16 Nov 2008 18:01:19 +0000 Subject: [PATCH] Thought I'd tested the previous commit - but I hadn't ;) --- e107_plugins/poll/poll_class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php index 6c46c91c9..3034c533e 100644 --- a/e107_plugins/poll/poll_class.php +++ b/e107_plugins/poll/poll_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/poll/poll_class.php,v $ -| $Revision: 1.13 $ -| $Date: 2008-11-16 17:56:49 $ +| $Revision: 1.14 $ +| $Date: 2008-11-16 18:01:19 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -347,7 +347,7 @@ class poll $comment_total = 0; if ($pollArray['poll_comment']) { // Only get comments if they're allowed on poll. And we only need the count ATM - $comment_total = $sql->db_Count("comments", "*", "comment_item_id='".intval($pollArray['poll_id'])."' AND comment_type=4"); + $comment_total = $sql->db_Count("comments", "(*)", "WHERE `comment_item_id`='".intval($pollArray['poll_id'])."' AND `comment_type`=4"); } $QUESTION = $tp -> toHTML($pollArray['poll_title'], TRUE,"emotes_off, defs");