Shouldn't send emails if there is no email for that author.

git-svn-id: http://svn.automattic.com/wordpress/trunk@283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-08-02 00:21:19 +00:00
parent 04a81c131f
commit c0757e99fb
1 changed files with 1 additions and 1 deletions

View File

@ -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";