fix PHP 8.x TypeError: htmlentities(): Argument #1 ($string) must be of type string, array given

This commit is contained in:
ralf 2022-04-27 17:48:09 +02:00
parent c62b305b4a
commit f4622f7811

View File

@ -448,7 +448,7 @@ class infolog_bo
if ((string)$info['info_custom_from'] === '') // old entry if ((string)$info['info_custom_from'] === '') // old entry
{ {
$info['info_custom_from'] = (int) ($title != $info['info_from'] && @htmlentities($title) != $info['info_from']); $info['info_custom_from'] = (int) ($title !== $info['info_from'] && is_string($title) && @htmlentities($title) !== $info['info_from']);
} }
if (!$info['info_custom_from']) if (!$info['info_custom_from'])
{ {