fix PHP 8.0 error: array_intersect() does not accept unknown named parameters

This commit is contained in:
Ralf Becker 2021-10-04 13:15:33 +02:00
parent 8084758d76
commit 1a5d18a84c

View File

@ -608,7 +608,7 @@ class infolog_ui
} }
if(count($links)) if(count($links))
{ {
$query['col_filter']['info_id'] = count($links) > 1 ? call_user_func_array('array_intersect', $links) : $links[$key ?? 'info_id']; $query['col_filter']['info_id'] = count($links) > 1 ? call_user_func_array('array_intersect', array_values($links)) : $links[$key ?? 'info_id'];
} }
return $linked; return $linked;
} }