fix PHP 7.3 syntax error / PHP 7.4 syntax, as 21.1 still supported PHP 7.3

This commit is contained in:
Ralf Becker 2021-12-02 21:41:13 +02:00
parent 4d014fab49
commit c10ca6fc5b

View File

@ -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)