summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfo.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-03-15 12:54:29 +0100
committerJannik Schönartz2017-03-15 12:54:29 +0100
commite92e4a11cd2771338db823e8aadb5a9c74957808 (patch)
tree4010849d0a02961e903843733a54013259624459 /modules-available/locationinfo/inc/locationinfo.inc.php
parentfrontend: fixed loading bar in mode 4, mode 4 now supports up to 4 rooms, fon... (diff)
downloadslx-admin-e92e4a11cd2771338db823e8aadb5a9c74957808.tar.gz
slx-admin-e92e4a11cd2771338db823e8aadb5a9c74957808.tar.xz
slx-admin-e92e4a11cd2771338db823e8aadb5a9c74957808.zip
Locationinfo: Reformat code.
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php
index 7ef06f8b..02a7e2c1 100644
--- a/modules-available/locationinfo/inc/locationinfo.inc.php
+++ b/modules-available/locationinfo/inc/locationinfo.inc.php
@@ -11,14 +11,14 @@ class LocationInfo
* [2] = OFF
* [3] = 10 days offline (BROKEN?)
*/
- // TODO USE STATE NAME instead of numbers
+ // TODO USE STATE NAME instead of numbers
$logintime = (int)$pc['logintime'];
$lastseen = (int)$pc['lastseen'];
$lastboot = (int)$pc['lastboot'];
$NOW = time();
- if ($NOW - $lastseen > 14*86400) {
+ if ($NOW - $lastseen > 14 * 86400) {
return 3;
} elseif (($NOW - $lastseen > 610) || $lastboot === 0) {
return 2;