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; } }