diff options
author | Simon Rettberg | 2020-01-17 16:23:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-01-17 16:23:53 +0100 |
commit | f10cfaf69cf3c8b227e6d562b837c834133b5897 (patch) | |
tree | 6b31202e2d18d7da18a55ce9fe64ae4e9f512bd1 /modules-available/locations/inc | |
parent | [locationinfo] Fix slx-browser interactive logic (diff) | |
download | slx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.tar.gz slx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.tar.xz slx-admin-f10cfaf69cf3c8b227e6d562b837c834133b5897.zip |
[locations] Don't consider *false* a valid fixed location id
Diffstat (limited to 'modules-available/locations/inc')
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 2 |
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) |