Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.605
diff -u -p -r1.605 comment.module
--- modules/comment/comment.module	8 Dec 2007 14:06:21 -0000	1.605
+++ modules/comment/comment.module	11 Dec 2007 13:52:12 -0000
@@ -1368,6 +1368,9 @@ function comment_form_add_preview($form,
     elseif (empty($comment->name)) {
       $comment->name = variable_get('anonymous', t('Anonymous'));
     }
+    if (!isset($comment->status)) {
+      $comment->status = COMMENT_NOT_PUBLISHED;
+    }
     $comment->timestamp = !empty($edit['timestamp']) ? $edit['timestamp'] : time();
     $output .= theme('comment_view', $comment, $node);
   }
Index: themes/bluemarine/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bluemarine/comment.tpl.php,v
retrieving revision 1.6
diff -u -p -r1.6 comment.tpl.php
--- themes/bluemarine/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.6
+++ themes/bluemarine/comment.tpl.php	11 Dec 2007 13:52:12 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.6 2007/08/07 08:39:36 goba Exp $
 ?>
-  <div class="comment<?php if (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
+  <div class="comment<?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
     <?php if ($picture) {
     print $picture;
   } ?>
Index: themes/garland/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/comment.tpl.php,v
retrieving revision 1.9
diff -u -p -r1.9 comment.tpl.php
--- themes/garland/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.9
+++ themes/garland/comment.tpl.php	11 Dec 2007 13:52:12 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.9 2007/08/07 08:39:36 goba Exp $
 ?>
-<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print (isset($comment->status) && $comment->status  == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status  == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">
 
   <div class="clear-block">
   <?php if ($submitted): ?>
