summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 14:54:24 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 14:54:24 +0000
commit784202418fcd0669271389a83b955e6ef2055f28 (patch)
tree787d6101ef61a7411deb70dc031a01f04399835c /modules/comment.module
parent539994e29c1c44124fe6c7c0cd99f7c4ef1fa95a (diff)
downloadbrdo-784202418fcd0669271389a83b955e6ef2055f28.tar.gz
brdo-784202418fcd0669271389a83b955e6ef2055f28.tar.bz2
#50771, Wrong user name in admin/comment, patach by Markus Petrux
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment.module b/modules/comment.module
index a1216b0e0..aa44503b9 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -957,6 +957,7 @@ function comment_admin_overview($type = 'new') {
$destination = drupal_get_destination();
while ($comment = db_fetch_object($result)) {
$comments[$comment->cid] = '';
+ $comment->name = $comment->uid ? $comment->registered_name : $comment->name;
$form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/'. $comment->nid, array('title' => truncate_utf8($comment->comment, 128)), NULL, 'comment-'. $comment->cid));
$form['username'][$comment->cid] = array('#value' => theme('username', $comment));
$form['timestamp'][$comment->cid] = array('#value' => format_date($comment->timestamp, 'small'));