Skip to content

Commit c16843f

Browse files
authored
fix the problem when an email is sent only to the first recipient (#6332)
1 parent a2510c6 commit c16843f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/functions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5819,6 +5819,10 @@ function split_emaildetail($email) {
58195819
$rname = '';
58205820
$rmail = '';
58215821

5822+
if (!is_array($email)) {
5823+
$email = trim($email);
5824+
}
5825+
58225826
/**
58235827
* Handle the special case where sendmail is being used
58245828
* without an email domain
@@ -5828,7 +5832,7 @@ function split_emaildetail($email) {
58285832
}
58295833

58305834
/**
5831-
* Handle the case where the Email is a tring, but may
5835+
* Handle the case where the Email is a string, but may
58325836
* include the name at the beginning of the Email.
58335837
*/
58345838
if (!is_array($email) && strpos($email, '@') !== false) {

0 commit comments

Comments
 (0)