Index: modules/comment/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.tpl.php,v
retrieving revision 1.3
diff -u -p -r1.3 comment.tpl.php
--- modules/comment/comment.tpl.php	7 Aug 2007 08:39:35 -0000	1.3
+++ modules/comment/comment.tpl.php	11 Dec 2007 09:23:48 -0000
@@ -24,7 +24,7 @@
  * @see theme_comment()
  */
 ?>
-<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print (isset($comment->status) && $comment->status  == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
   <?php print $picture ?>
 
   <?php if ($comment->new): ?>
Index: themes/chameleon/chameleon.theme
===================================================================
RCS file: /cvs/drupal/drupal/themes/chameleon/chameleon.theme,v
retrieving revision 1.72
diff -u -p -r1.72 chameleon.theme
--- themes/chameleon/chameleon.theme	5 Dec 2007 16:34:06 -0000	1.72
+++ themes/chameleon/chameleon.theme	11 Dec 2007 09:23:48 -0000
@@ -157,7 +157,7 @@ function chameleon_comment($comment, $no
     'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))),
     'html' => TRUE);
 
-  $output  = "<div class=\"comment". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
+  $output  = "<div class=\"comment". (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
   $output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."</h3>\n";
   $output .= " <div class=\"content\">". $comment->comment;
   if (!empty($signature)) {
Index: themes/pushbutton/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/pushbutton/comment.tpl.php,v
retrieving revision 1.5
diff -u -p -r1.5 comment.tpl.php
--- themes/pushbutton/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.5
+++ themes/pushbutton/comment.tpl.php	11 Dec 2007 09:23:48 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.5 2007/08/07 08:39:36 goba Exp $
 ?>
-<div class="comment<?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
+<div class="comment<?php if (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
   <?php if ($picture) : ?>
     <?php print $picture ?>
   <?php endif; ?>
