From 5548926e37ae4f1696cf86d909632fe045e244e4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 2 Dec 2021 21:41:13 +0200 Subject: [PATCH] fix PHP 7.3 syntax error / PHP 7.4 syntax, as 21.1 still supported PHP 7.3 --- calendar/inc/class.calendar_so.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 51591bf7c0..7959b51ed5 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -795,7 +795,7 @@ class calendar_so $where = array_merge($where, $params['sql_filter']); } } - if(array_filter($where, fn($key) => str_contains($key, '#'), ARRAY_FILTER_USE_KEY)) + if(array_filter($where, static function($key) { return str_contains($key, '#');}, ARRAY_FILTER_USE_KEY)) { $custom_fields = Api\Storage\Customfields::get('calendar'); foreach($where as $col => $data)