summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module2
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();