Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.824
diff -u -p -r1.824 comment.module
--- modules/comment/comment.module	3 Jan 2010 22:30:26 -0000	1.824
+++ modules/comment/comment.module	4 Jan 2010 08:46:13 -0000
@@ -2080,7 +2080,7 @@ function template_preprocess_comment(&$v
   $variables['new']       = !empty($comment->new) ? t('new') : '';
   $variables['picture']   = theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', array('account' => $comment)) : '';
   $variables['signature'] = $comment->signature;
-  $variables['title']     = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid"));
+  $variables['title']     = ($comment->cid) ? l($comment->subject, 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid")) : $comment->subject;
   $variables['template_files'][] = 'comment-' . $variables['node']->type;
 
   // Helpful $content variable for templates.
