Commit 83267286 authored by greggles's avatar greggles

bug #753358 by David_Rothstein: Comment Notify breaks the core 'approve' link...

bug #753358 by David_Rothstein: Comment Notify breaks the core 'approve' link (and otherwise prevents updating comments outside the comment form)
parent 5350dc9d
......@@ -236,7 +236,9 @@ function comment_notify_comment_publish($comment) {
function comment_notify_comment_update($comment) {
// In case they have changed their status, save it in the database.
comment_notify_update_notification($comment->cid, $comment->notify_type);
if (isset($comment->notify_type)) {
comment_notify_update_notification($comment->cid, $comment->notify_type);
}
// And send notifications - the real purpose of the module.
if ($comment->status == COMMENT_PUBLISHED) {
_comment_notify_mailalert($comment);
......
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