summaryrefslogtreecommitdiffstats
path: root/modules-available/locations
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-18 14:40:35 +0100
committerSimon Rettberg2024-01-18 14:40:35 +0100
commit09847016b8816b5fbf37aeb5af93cd553f76b8ac (patch)
tree4bcb1d5eeaf34b5df3507e4dd077d2879900b758 /modules-available/locations
parentFix type errors (diff)
downloadslx-admin-09847016b8816b5fbf37aeb5af93cd553f76b8ac.tar.gz
slx-admin-09847016b8816b5fbf37aeb5af93cd553f76b8ac.tar.xz
slx-admin-09847016b8816b5fbf37aeb5af93cd553f76b8ac.zip
[locations/statistics] More type safety, array key checks
Diffstat (limited to 'modules-available/locations')
-rw-r--r--modules-available/locations/inc/locationhooks.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locations/inc/locationhooks.inc.php b/modules-available/locations/inc/locationhooks.inc.php
index fca85575..f6ef02da 100644
--- a/modules-available/locations/inc/locationhooks.inc.php
+++ b/modules-available/locations/inc/locationhooks.inc.php
@@ -21,7 +21,7 @@ class LocationHooks
if ($locs === false || !isset($locs[$id]))
return [];
BaseConfig::prepareWithOverrides([
- 'locationid' => $locs[$id]['parentlocationid']
+ 'locationid' => $locs[$id]['parentlocationid'] ?? 0
]);
return ConfigHolder::getRecursiveConfig(true);
}