Skip to content

Commit

Permalink
Merge pull request #66 from experius/feature/SCSUP-1684
Browse files Browse the repository at this point in the history
Update function imapUtf8 with check on string type
  • Loading branch information
experius-nl authored Oct 12, 2022
2 parents 29049be + 241524f commit f484aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Emailcatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function getEmailAddressesFromObject($addresses, $asString = true)
*/
public function imapUtf8($string)
{
if (function_exists('imap_utf8')) {
if (function_exists('imap_utf8') && is_string($string)) {
$string = imap_utf8($string);
}
return $string;
Expand Down

0 comments on commit f484aac

Please sign in to comment.