diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 8ab50b4ab..2a6c285bf 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $ -| $Revision: 1.13 $ -| $Date: 2008-10-11 10:48:58 $ +| $Revision: 1.14 $ +| $Date: 2008-10-22 21:28:31 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -497,7 +497,7 @@ class comment { { global $sql, $tp; $type = $this -> getCommentType($table); - $count_comments = $sql -> db_Count("comments", "(*)", "WHERE comment_item_id='".intval($id)."' AND comment_type='".$tp -> toDB($type, true)."' ORDER BY comment_item_id"); + $count_comments = $sql -> db_Count("comments", "(*)", "WHERE comment_item_id='".intval($id)."' AND comment_type='".$tp -> toDB($type, true)."' "); return $count_comments; }