#229051 follow-up by anigma32: Committing rest of fix for statistics under pgsql.
parent
5339dccdaa
commit
0f3d0f2693
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue