From 42da2173cd9f4260f7fa8bf3d4ca3d33d6afe4b2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 14 Nov 2024 14:55:11 +0100 Subject: [locationinfo] Remove redundant check --- modules-available/locationinfo/inc/locationinfo.inc.php | 12 +++++------- 1 file 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; -- cgit v1.2.3-55-g7522