From b07d08a235856f52b6f2078820ff494653da634a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 08:00:14 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Cannot access offset of type string on string --- calendar/inc/class.calendar_merge.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index af6969920d..39c5c44a1a 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -777,7 +777,7 @@ class calendar_merge extends Api\Storage\Merge else if((strpos($content, '$$pagerepeat') !== false || strpos($content, '{{pagerepeat') !== false) && ((strpos($content, '$$range') === false && strpos($content, '{{range') === false))) { - if(is_array($ids) && $ids[0] && !$ids[0]['id']) + if (is_array($ids) && !empty($ids[0]) && !(is_array($ids[0]) || isset($ids[0]['id']))) { foreach($ids as $range) {