diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-05 14:25:58 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-05 14:25:58 +0000 |
commit | e9f7072edd41b43c477835ea61e1e8b3c3d418fa (patch) | |
tree | dfb1301021d26ed97842ddb0be2628540a0aecbc | |
parent | 366c8669311361779eac5852f962b3cda0f965ec (diff) | |
download | brdo-e9f7072edd41b43c477835ea61e1e8b3c3d418fa.tar.gz brdo-e9f7072edd41b43c477835ea61e1e8b3c3d418fa.tar.bz2 |
#186749 by Rob Loach and myself: (regression) only override comment submitter name with anonymous name, if it was not provided already
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 509de92b8..00ab4fb87 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1368,7 +1368,7 @@ function comment_form_add_preview($form, &$form_state) { $comment->uid = $account->uid; $comment->name = check_plain($account->name); } - else { + elseif (empty($comment->name)) { $comment->name = variable_get('anonymous', t('Anonymous')); } $comment->timestamp = !empty($edit['timestamp']) ? $edit['timestamp'] : time(); |