diff options
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 5ef7a9ed..656c2f81 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -1022,8 +1022,14 @@ class Page_LocationInfo extends Page } } $allowed = User::getAllowedLocations($permission); + if (in_array(0, $allowed)) + return; if (!empty($allowed)) { - $locations = explode(',', $panel['locationids']); + if (isset($panel['locationids'])) { + $locations = explode(',', $panel['locationids']); + } else { + $locations = []; + } if (!empty($additionalLocations)) { $locations = array_merge($locations, $additionalLocations); } |