summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-11-14 14:55:11 +0100
committerSimon Rettberg2024-11-14 14:55:11 +0100
commit42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2 (patch)
treed0c66cd0a60d659646070e6baa1e473dfcdb66ec
parent[locationinfo] Put upgrade/cleanup code in distinct function and extend (diff)
downloadslx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.tar.gz
slx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.tar.xz
slx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.zip
[locationinfo] Remove redundant checkHEADmaster
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php
index a46208c6..64010c16 100644
--- a/modules-available/locationinfo/inc/locationinfo.inc.php
+++ b/modules-available/locationinfo/inc/locationinfo.inc.php
@@ -201,13 +201,11 @@ class LocationInfo
LocationInfo::setServerError($serverid, $serverInstance->getErrors());
- if (is_array($calendarFromBackend)) {
- foreach ($calendarFromBackend as $key => $value) {
- $resultArray[] = array(
- 'id' => (int)$key,
- 'calendar' => $value,
- );
- }
+ foreach ($calendarFromBackend as $key => $value) {
+ $resultArray[] = array(
+ 'id' => (int)$key,
+ 'calendar' => $value,
+ );
}
}
return $resultArray;