Index: modules/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment.module,v
retrieving revision 1.248
diff -u -r1.248 comment.module
--- modules/comment.module	2 Jun 2004 19:01:40 -0000	1.248
+++ modules/comment.module	3 Jun 2004 04:31:21 -0000
@@ -927,13 +927,19 @@
 
 function comment_admin_edit($id) {
 
-  $result = db_query('SELECT c.*, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status != 2', $id);
+  $result = db_query('SELECT c.*, u.name AS registered_name, u.mail AS registered_mail, u.uid FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status != 2', $id);
   $comment = db_fetch_object($result);
   $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name;
+  $comment->mail = $comment->registered_mail ? $comment->registered_mail : $comment->mail;
+
   $comment = drupal_unpack($comment);
 
   if ($comment) {
     $form .= form_item(t("Author"), format_name($comment));
+    if (!$comment->registered_name) {
+      $form .= form_textfield(t("Mail"), 'mail', $comment->mail, 70, 128);
+      $form .= form_textfield(t("Homepage"), 'homepage', $comment->homepage, 70, 128);
+    }
     $form .= form_textfield(t("Subject"), 'subject', $comment->subject, 70, 128);
     $form .= form_textarea(t("Comment"), 'comment', $comment->comment, 70, 15, filter_tips_short());
     $form .= form_radios(t("Status"), 'status', $comment->status, array("published", "not published"));
