From c781ee2d858cd900c1e66a7c0c11f50479f8de25 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 2 Aug 2003 00:21:19 +0000 Subject: [PATCH] Shouldn't send emails if there is no email for that author. git-svn-id: https://develop.svn.wordpress.org/trunk@283 602fd350-edb4-49c9-b593-d223f7449a82 --- b2comments.post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2comments.post.php b/b2comments.post.php index 599ff3e0ae..55299d5d5f 100644 --- a/b2comments.post.php +++ b/b2comments.post.php @@ -88,7 +88,7 @@ if ($ok) { $wpdb->query("INSERT INTO $tablecomments VALUES ('0','$comment_post_ID','$author','$email','$url','$user_ip','$now','$comment','0')"); - if ($comments_notify) { + if ($comments_notify && '' != $comment_author_email) { $notify_message = "New comment on your post #$comment_post_ID ".stripslashes($postdata['Title'])."\r\n\r\n"; $notify_message .= "Author : $comment_author (IP: $user_ip , $user_domain)\r\n";