* Do not send mails, if the "To:" address is empty, might happen
if authors do not have a mail account entered in their profile. (nealk)
This commit is contained in:
@ -541,7 +541,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
if (!isset($maildata['skip_native'])) {
|
||||
if (!isset($maildata['skip_native']) && !empty($maildata['to'])) {
|
||||
return mail($maildata['to'], $maildata['subject'], $maildata['message'], implode("\n", $maildata['headers']));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user