From a37211cf82cd1c1b45b7f8420b018edefc56f3e8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 8 Jun 2001 19:49:20 +0000 Subject: [PATCH] - Revised the 'track sitename' feature: it should be more accurate now. --- account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.php b/account.php index 6f6ff89e545..f341c1d1cc0 100644 --- a/account.php +++ b/account.php @@ -388,7 +388,7 @@ function account_track_site() { $theme->header(); - $nresult = db_query("SELECT n.nid, n.title, COUNT(c.cid) AS count FROM comments c LEFT JOIN node n ON n.nid = c.lid WHERE c.timestamp > ". (time() - $period) ." GROUP BY c.lid ORDER BY count DESC"); + $nresult = db_query("SELECT n.nid, n.title, COUNT(c.cid) AS count FROM comments c LEFT JOIN node n ON n.nid = c.lid WHERE n.status = '". node_status("posted") ."' AND c.timestamp > ". (time() - $period) ." GROUP BY c.lid ORDER BY count DESC"); while ($node = db_fetch_object($nresult)) { $output .= "
  • ". format_plural($node->count, "comment", "comments") ." ". t("attached to") ." 'nid\">". check_output($node->title) ."':
  • ";