--- comment_notify_old.module	2007-10-23 07:25:10.000000000 +0300
+++ comment_notify.module	2007-10-23 07:26:27.000000000 +0300
@@ -340,11 +340,11 @@
     $languages = locale_supported_languages();
     $languages = $languages['name'];
   }
-    $nid = $comment['nid'];
-    $cid = $comment['cid'];
-    $commname= $comment['name'];
-    $commtext= $comment['comment'];
-    $commsubj= $comment['subject'];
+    $nid = $comment->nid;
+    $cid = $comment->cid;
+    $commname= $comment->name;
+    $commtext= $comment->comment;
+    $commsubj= $comment->subject;
    
     
 
@@ -401,6 +401,8 @@
 			);
 
 		 
+			$headers = array();
+			
 			drupal_mail('comment_notify_mail',$alert->mail, $subject, $message, $from, $headers);
 			$count++;
 
