mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bugtracker #4554 - get rid of unnecessary part of query
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $
|
||||||
| $Revision: 1.13 $
|
| $Revision: 1.14 $
|
||||||
| $Date: 2008-10-11 10:48:58 $
|
| $Date: 2008-10-22 21:28:31 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -497,7 +497,7 @@ class comment {
|
|||||||
{
|
{
|
||||||
global $sql, $tp;
|
global $sql, $tp;
|
||||||
$type = $this -> getCommentType($table);
|
$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;
|
return $count_comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user