Commit b2a8e8e0 authored by gnuget's avatar gnuget Committed by gnuget

Issue #2976478 by gnuget: Error approving comment without email, which replies...

Issue #2976478 by gnuget: Error approving comment without email, which replies to comment w/subscription
parent 3597274c
......@@ -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();
......
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