From 70487200af1582c9b5e59e9eb644dc5c9ddb0812 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 29 Mar 2017 13:17:18 +0200 Subject: [statistics] Fetch client log by UUID, not IP --- modules-available/statistics/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/statistics/page.inc.php') diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index 6a9acd14..87c8e7c4 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -806,7 +806,7 @@ class Page_Statistics extends Page // Client log if (Module::get('syslog') !== false) { $lres = Database::simpleQuery('SELECT logid, dateline, logtypeid, clientip, description, extra FROM clientlog' - . ' WHERE clientip = :clientip ORDER BY logid DESC LIMIT 25', array('clientip' => $client['clientip'])); + . ' WHERE machineuuid = :uuid ORDER BY logid DESC LIMIT 25', array('uuid' => $client['machineuuid'])); $today = date('d.m.Y'); $yesterday = date('d.m.Y', time() - 86400); $count = 0; -- cgit v1.2.3-55-g7522