* 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:
parent
518bde82b2
commit
1e95b899c6
@ -6,6 +6,10 @@ Version 1.5 ()
|
||||
* Also use htmlspecialchars() for the Recent Entries sidebar plugin
|
||||
(Anson)
|
||||
|
||||
* 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)
|
||||
|
||||
* Fixed Spartacus download URLs for SF.Net mirror (christian_boltz)
|
||||
|
||||
* Allow redirects when fetching remote images (garvinhicking)
|
||||
|
@ -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']));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user