bug #753358 by David_Rothstein: Comment Notify breaks the core 'approve' link (and...
authorGreg (greggles) Knaddison
Sun, 4 Apr 2010 20:44:57 +0000 (20:44 +0000)
committerGreg (greggles) Knaddison
Sun, 4 Apr 2010 20:44:57 +0000 (20:44 +0000)
comment_notify.module

index ef9e3b5..b5338ec 100644 (file)
@@ -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);