diff options
author | Simon Rettberg | 2017-01-19 12:52:54 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-01-19 12:52:54 +0100 |
commit | 4f28f1f84c9f38690238dd634cd521c56040b374 (patch) | |
tree | 8eef01a78e2abb3514eb84d489da4dd951bec1ef /modules-available | |
parent | [locationinfo] Fix formatting (diff) | |
download | slx-admin-4f28f1f84c9f38690238dd634cd521c56040b374.tar.gz slx-admin-4f28f1f84c9f38690238dd634cd521c56040b374.tar.xz slx-admin-4f28f1f84c9f38690238dd634cd521c56040b374.zip |
[locationinfo] Add missing column to query
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/api.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php index 7c90c0f5..515ac81f 100644 --- a/modules-available/locationinfo/api.inc.php +++ b/modules-available/locationinfo/api.inc.php @@ -209,9 +209,9 @@ function getRoomInfoJson($locationID, $coords) { function getPcInfos($locationID, $coords) { if ($coords == '1') { - $dbquery = Database::simpleQuery("SELECT machineuuid, position, logintime FROM `machine` WHERE locationid = :locationID" , array('locationID' => $locationID)); + $dbquery = Database::simpleQuery("SELECT machineuuid, position, logintime, lastseen FROM `machine` WHERE locationid = :locationID" , array('locationID' => $locationID)); } else { - $dbquery = Database::simpleQuery("SELECT machineuuid, logintime FROM `machine` WHERE locationid = :locationID" , array('locationID' => $locationID)); + $dbquery = Database::simpleQuery("SELECT machineuuid, logintime, lastseen FROM `machine` WHERE locationid = :locationID" , array('locationID' => $locationID)); } $pcs = array(); @@ -234,6 +234,7 @@ function getPcInfos($locationID, $coords) { } $str = json_encode($pcs, true); + error_log($str); return $str; } |