diff --git web/sites/all/modules/contrib/comment_notify/comment_notify.inc web/sites/all/modules/contrib/comment_notify/comment_notify.inc index 09f8d4b..6820925 100644 --- web/sites/all/modules/contrib/comment_notify/comment_notify.inc +++ web/sites/all/modules/contrib/comment_notify/comment_notify.inc @@ -205,12 +205,13 @@ function comment_notify_get_watchers($nid) { * @param integer $cid * @return boolean */ -function comment_notify_mark_comment_as_notified($cid) { +function comment_notify_mark_comment_as_notified($comment) { + $comment->notified = 1; return (bool)db_update('comment_notify') ->fields(array( 'notified' => 1, )) - ->condition('cid', $cid) + ->condition('cid', $comment->cid) ->execute(); } diff --git web/sites/all/modules/contrib/comment_notify/comment_notify.module web/sites/all/modules/contrib/comment_notify/comment_notify.module index 7e65ec9..1466aaf 100644 --- web/sites/all/modules/contrib/comment_notify/comment_notify.module +++ web/sites/all/modules/contrib/comment_notify/comment_notify.module @@ -541,7 +541,7 @@ function _comment_notify_mailalert($comment) { // Record that a notification was sent for this comment so that // notifications aren't sent again if the comment is later edited. - comment_notify_mark_comment_as_notified($cid); + comment_notify_mark_comment_as_notified($comment); } /**