diff options
author | Simon Rettberg | 2024-11-14 14:55:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-11-14 14:55:11 +0100 |
commit | 42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2 (patch) | |
tree | d0c66cd0a60d659646070e6baa1e473dfcdb66ec /modules-available | |
parent | [locationinfo] Put upgrade/cleanup code in distinct function and extend (diff) | |
download | slx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.tar.gz slx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.tar.xz slx-admin-42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2.zip |
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 12 |
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; |