From e92e4a11cd2771338db823e8aadb5a9c74957808 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 15 Mar 2017 12:54:29 +0100 Subject: Locationinfo: Reformat code. --- modules-available/locationinfo/inc/locationinfo.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php') 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; -- cgit v1.2.3-55-g7522