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)