#229051 follow-up by anigma32: Committing rest of fix for statistics under pgsql.

merge-requests/26/head
Angie Byron 2008-12-30 03:53:35 +00:00
parent 5339dccdaa
commit 0f3d0f2693
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function statistics_top_visitors() {
);
$sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name, a.hostname, SUM(a.timer) AS total, bl.iid FROM {accesslog} a LEFT JOIN {blocked_ips} bl ON a.hostname = bl.ip LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.hostname, a.uid, u.name, bl.iid" . tablesort_sql($header);
$sql_cnt = "SELECT COUNT(DISTINCT(CONCAT(uid, hostname))) FROM {accesslog}";
$sql_cnt = "SELECT COUNT(DISTINCT(CONCAT(CAST(uid AS char), hostname))) FROM {accesslog}";
$result = pager_query($sql, 30, 0, $sql_cnt);
$rows = array();