Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.745
diff -u -r1.745 comment.module
--- modules/comment/comment.module	31 Jul 2009 19:44:09 -0000	1.745
+++ modules/comment/comment.module	31 Jul 2009 23:18:49 -0000
@@ -1895,10 +1897,10 @@
     $comment->format = $comment->comment_format;
 
     // Attach the user and time information.
-    if (!empty($edit['author'])) {
-      $account = user_load_by_name($edit['author']);
+    if (!empty($comment->author)) {
+      $account = user_load_by_name($comment->author);
     }
-    elseif ($user->uid && !isset($edit['is_anonymous'])) {
+    elseif ($user->uid && !isset($comment->is_anonymous)) {
       $account = $user;
     }
 
@@ -1910,7 +1912,7 @@
       $comment->name = variable_get('anonymous', t('Anonymous'));
     }
 
-    $comment->timestamp = !empty($edit['timestamp']) ? $edit['timestamp'] : REQUEST_TIME;
+    $comment->timestamp = !empty($comment->timestamp) ? $comment->timestamp : REQUEST_TIME;
     $comment->in_preview = TRUE;
     $comment_build = comment_build($comment);
     $comment_build += array(
