1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Bugtracker #4554 - get rid of unnecessary part of query

This commit is contained in:
e107steved
2008-10-22 21:28:37 +00:00
parent 45a76fbc89
commit 23535eb37d

View File

@@ -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;
}