summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 855ed2e81..2fa9bdfb1 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -610,7 +610,7 @@ function comment_save($edit) {
$edit['cid'] = db_next_id('{comments}_cid');
$edit['timestamp'] = time();
- if ($edit['uid'] = $user->uid) {
+ if ($edit['uid'] == $user->uid) {
$edit['name'] = $user->name;
}