summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-01-17 16:23:53 +0100
committerSimon Rettberg2020-01-17 16:23:53 +0100
commitf10cfaf69cf3c8b227e6d562b837c834133b5897 (patch)
tree6b31202e2d18d7da18a55ce9fe64ae4e9f512bd1
parent[locationinfo] Fix slx-browser interactive logic (diff)
downloadslx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.tar.gz
slx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.tar.xz
slx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.zip
[locations] Don't consider *false* a valid fixed location id
-rw-r--r--modules-available/locations/inc/location.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php
index 37e6e720..30f4b1c1 100644
--- a/modules-available/locations/inc/location.inc.php
+++ b/modules-available/locations/inc/location.inc.php
@@ -345,6 +345,8 @@ class Location
public static function isFixedLocationValid($uuidLoc, $ipLoc)
{
+ if ($uuidLoc === false)
+ return false;
$uuidLoc = (int)$uuidLoc;
$ipLoc = (int)$ipLoc;
if ($uuidLoc === $ipLoc || $uuidLoc === 0)