diff options
author | Jannik Schönartz | 2016-12-05 18:56:44 +0100 |
---|---|---|
committer | Jannik Schönartz | 2016-12-05 18:56:44 +0100 |
commit | a86d0225dc7768a629ce59c325a1dcc739122ef9 (patch) | |
tree | 3dcfbd03ea58d97a09515d7a4783a8aef761ff26 /modules-available/locationinfo/api.inc.php | |
parent | frontend: changed to backend changes, use media querrys, changed free seats f... (diff) | |
download | slx-admin-a86d0225dc7768a629ce59c325a1dcc739122ef9.tar.gz slx-admin-a86d0225dc7768a629ce59c325a1dcc739122ef9.tar.xz slx-admin-a86d0225dc7768a629ce59c325a1dcc739122ef9.zip |
Locationinfo: Added Servertable
Diffstat (limited to 'modules-available/locationinfo/api.inc.php')
-rw-r--r-- | modules-available/locationinfo/api.inc.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php index f4f5c9c2..2642ec78 100644 --- a/modules-available/locationinfo/api.inc.php +++ b/modules-available/locationinfo/api.inc.php @@ -189,11 +189,7 @@ function getPcInfos($locationID, $coords) { $computer['y'] = $position['gridRow']; } - $computer['inUse'] = 0; - - if ($pc['logintime'] > 0) { - $computer['inUse'] = 1; - } + $computer['pcState'] = LocationInfo::getPcState((int)$computer['logintime'], (int)$computer['lastseen']); $pcs[] = $computer; } |