diff options
author | Simon Rettberg | 2017-12-01 18:57:21 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 18:57:21 +0100 |
commit | 22997e6c4f41c2186849e86bb923ec2f4a00e308 (patch) | |
tree | 52912c3be6ae7c87e514db0849b7de611f42ade6 /modules-available/locations/inc | |
parent | <install.php> add another button at the top (diff) | |
download | slx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.tar.gz slx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.tar.xz slx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.zip |
[location] WTF?
Diffstat (limited to 'modules-available/locations/inc')
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php index 42026f8b..0576e660 100644 --- a/modules-available/locations/inc/location.inc.php +++ b/modules-available/locations/inc/location.inc.php @@ -385,8 +385,7 @@ class Location */ public static function getSubnets() { - $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet WHERE locationid IN (:locations)", - array("locations" => User::getAllowedLocations("subnetlist.view"))); + $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet"); $subnets = array(); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { settype($row['locationid'], 'int'); |