diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6f0df6cae1..7c8d083d6f 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2563,17 +2563,23 @@ function comment_action_info() {
  */
 function comment_publish_action($comment, $context = array()) {
   if (isset($comment->subject)) {
+		$nid = $comment->nid;
     $subject = $comment->subject;
     $comment->status = COMMENT_PUBLISHED;
   }
   else {
     $cid = $context['cid'];
-    $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
+    $comment_data = db_query('SELECT nid, subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchAssoc();
+    $nid = $comment_data['nid'];
+		$subject = $comment_data['subject'];
     db_update('comment')
       ->fields(array('status' => COMMENT_PUBLISHED))
       ->condition('cid', $cid)
       ->execute();
   }
+	
+	_comment_update_node_statistics($nid);
+	
   watchdog('action', 'Published comment %subject.', array('%subject' => $subject));
 }
 
@@ -2590,17 +2596,23 @@ function comment_publish_action($comment, $context = array()) {
  */
 function comment_unpublish_action($comment, $context = array()) {
   if (isset($comment->subject)) {
+		$nid = $comment->nid;
     $subject = $comment->subject;
     $comment->status = COMMENT_NOT_PUBLISHED;
   }
   else {
     $cid = $context['cid'];
-    $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
+    $comment_data = db_query('SELECT nid, subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchAssoc();
+    $nid = $comment_data['nid'];
+		$subject = $comment_data['subject'];
     db_update('comment')
       ->fields(array('status' => COMMENT_NOT_PUBLISHED))
       ->condition('cid', $cid)
       ->execute();
   }
+	
+	_comment_update_node_statistics($nid);
+	
   watchdog('action', 'Unpublished comment %subject.', array('%subject' => $subject));
 }
 
