From 36556762f97238fb055cb88f44570e6cfcd2e4a6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 5 Jan 2003 00:05:53 +0000 Subject: - Made a database query ASNI compliant. Patch by Ax. --- modules/statistics/statistics.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index af6387480..d465b23c3 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -353,7 +353,7 @@ function statistics_admin_accesslog_table($type, $id) { } else { /* retrieve recent access logs for all users */ - $result = db_query("SELECT nid, url, hostname, uid, MAX(timestamp) AS timestamp FROM accesslog WHERE uid <> '0' GROUP BY uid ORDER BY timestamp DESC LIMIT %s", $limit1); + $result = db_query("SELECT nid, url, hostname, uid, MAX(timestamp) AS timestamp FROM accesslog WHERE uid <> '0' GROUP BY uid, nid, url, hostname ORDER BY timestamp DESC LIMIT %s", $limit1); } } else if ($type == 2) { -- cgit v1.2.3