Skip to content

Commit b826dc9

Browse files
author
Eoghan O'Brien
committed
Fix issue with calling trim and expecting a return value in PHP < v5.4
1 parent d363b98 commit b826dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.simple_mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public function __toString()
546546
public function formatHeader($email, $name = null)
547547
{
548548
$email = $this->filterEmail((string) $email);
549-
if (empty(trim($name))) {
549+
if (empty($name)) {
550550
return $email;
551551
}
552552
$name = $this->encodeUtf8($this->filterName((string) $name));

0 commit comments

Comments
 (0)