pingbacks were not counted as entry trackbacks (also added to entries)

This commit is contained in:
Grischa Brockhaus 2009-07-04 01:37:47 +00:00
parent 45c300afd5
commit 388e5c3d21

View File

@ -663,7 +663,7 @@ function serendipity_approveComment($cid, $entry_id, $force = false, $moderate =
$counter_tb = serendipity_db_query("SELECT count(id) AS counter
FROM {$serendipity['dbPrefix']}comments
WHERE status = 'approved'
AND type = 'TRACKBACK'
AND (type = 'TRACKBACK' or type = 'PINGBACK')
AND entry_id = " . (int)$entry_id . "
GROUP BY entry_id", true);