diff options
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php index 4e2ea8aa..f924e469 100644 --- a/modules-available/locationinfo/inc/locationinfo.inc.php +++ b/modules-available/locationinfo/inc/locationinfo.inc.php @@ -25,13 +25,13 @@ class LocationInfo $NOW = time(); if ($NOW - $lastseen > 14 * 86400) { - return 3; + return "BROKEN"; } elseif (($NOW - $lastseen > 610) || $lastboot === 0) { - return 2; + return "OFF"; } elseif ($logintime === 0) { - return 0; + return "IDLE"; } elseif ($logintime > 0) { - return 1; + return "OCCUPIED"; } return -1; } |