Skip to content

Commit

Permalink
html_entity_decode(): Passing null to parameter #1 ($string) of type …
Browse files Browse the repository at this point in the history
…string is deprecated
  • Loading branch information
escopecz committed Jun 9, 2023
1 parent c1b5639 commit e03aca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bundles/LeadBundle/Entity/LeadRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e03aca5

Please sign in to comment.