summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgnuget2019-02-19 18:59:22 (GMT)
committerDavid Valdez2019-02-19 18:59:22 (GMT)
commitb2a8e8e09c0a47cca4ccbdd0e48ba7a46964900a (patch)
tree8f7842e451182de0c51a64e87af760900bfd565d
parent3597274c283a5a9050e86db4d1c7b3fd4765d627 (diff)
Issue #2976478 by gnuget: Error approving comment without email, which replies to comment w/subscription
-rw-r--r--comment_notify.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/comment_notify.module b/comment_notify.module
index 17353e3..7b89f91 100644
--- a/comment_notify.module
+++ b/comment_notify.module
@@ -392,6 +392,9 @@ function _comment_notify_mailalert(CommentInterface $comment) {
if ($comment_account = user_load_by_name($comment->getAuthorName())) {
$comment_mail = $comment_account->getEmail() ?: '';
}
+ else {
+ $comment_mail = '';
+ }
}
else {
$comment_mail = $comment->getAuthorEmail();