fix PHP 8.0 TypeError: Cannot access offset of type string on string

This commit is contained in:
Ralf Becker 2021-11-11 09:21:53 +01:00
parent cb70a57b78
commit a2f361f521

View File

@ -355,7 +355,8 @@ class infolog_ui
} }
// Querying for a particular ID. If linked is a list of IDs, reset the linked or we won't find the ID we want. // Querying for a particular ID. If linked is a list of IDs, reset the linked or we won't find the ID we want.
if($query['col_filter']['info_id'] && $link_filters['linked'] && !$link_filters['linked']['app']) if (!empty($query['col_filter']['info_id']) && !empty($link_filters['linked']) &&
(!is_array($link_filters['linked']) || empty($link_filters['linked']['app'])))
{ {
unset($links['linked']); unset($links['linked']);
unset($link_filters['linked']); unset($link_filters['linked']);