From e03aca56de8b6db22b0f99a29ceb6c5393dfc546 Mon Sep 17 00:00:00 2001 From: John Linhart Date: Mon, 5 Jun 2023 16:59:18 +0200 Subject: [PATCH] html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated --- app/bundles/LeadBundle/Entity/LeadRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bundles/LeadBundle/Entity/LeadRepository.php b/app/bundles/LeadBundle/Entity/LeadRepository.php index 8fa884b0055..4acb4b9aeaa 100755 --- a/app/bundles/LeadBundle/Entity/LeadRepository.php +++ b/app/bundles/LeadBundle/Entity/LeadRepository.php @@ -1085,7 +1085,7 @@ public function getLeadOwner($ownerId) // Fix the HTML markup if (is_array($result)) { foreach ($result as &$field) { - $field = html_entity_decode($field); + $field = is_string($field) ? html_entity_decode($field) : $field; } }