summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-03-29 13:17:18 +0200
committerSimon Rettberg2017-03-29 13:17:18 +0200
commit70487200af1582c9b5e59e9eb644dc5c9ddb0812 (patch)
tree1b46246553e15531fa2c025cabd1f61ab37d54fa /modules-available/statistics/page.inc.php
parent[webinterface] Make line reporting current setting more visible (diff)
downloadslx-admin-70487200af1582c9b5e59e9eb644dc5c9ddb0812.tar.gz
slx-admin-70487200af1582c9b5e59e9eb644dc5c9ddb0812.tar.xz
slx-admin-70487200af1582c9b5e59e9eb644dc5c9ddb0812.zip
[statistics] Fetch client log by UUID, not IP
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r--modules-available/statistics/page.inc.php2
1 files changed, 1 insertions, 1 deletions
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;