Commit 13fbf376 authored by greggles's avatar greggles

#533856 by greggles: Fixed not sending e-mails to anonymous users

parent bc918d16
......@@ -454,7 +454,7 @@ function _comment_notify_mailalert($comment) {
continue;
}
if ($mail != $comment_mail && !in_array($mail, $sent_to) && $alert->uid != $comment->uid) {
if ($mail != $comment_mail && !in_array($mail, $sent_to) && ($alert->uid != $comment->uid || $alert->uid == 0)) {
$message = array();
if (!empty($alert->uid)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment