From 1c83d517410a013aba23bb44e4620cff7d9e9824 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 14 Apr 2005 19:37:11 +0000 Subject: - Patch by Adrian: postgresql fixes --- modules/statistics/statistics.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/statistics') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 8261758bc..158d9f8fa 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -283,7 +283,7 @@ function statistics_top_users() { array('data' => t('User'), 'field' => 'u.name'), ); - $sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.uid". tablesort_sql($header); + $sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.uid, u.name". tablesort_sql($header); $sql_cnt = "SELECT COUNT(DISTINCT(uid)) FROM {accesslog}"; $result = pager_query($sql, 30, 0, $sql_cnt); -- cgit v1.2.3