diff options
author | Simon Rettberg | 2024-01-18 14:40:35 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-18 14:40:35 +0100 |
commit | 09847016b8816b5fbf37aeb5af93cd553f76b8ac (patch) | |
tree | 4bcb1d5eeaf34b5df3507e4dd077d2879900b758 /modules-available/locations/inc | |
parent | Fix type errors (diff) | |
download | slx-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/inc')
-rw-r--r-- | modules-available/locations/inc/locationhooks.inc.php | 2 |
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); } |