diff options
-rw-r--r-- | modules/comment.module | 2 | ||||
-rw-r--r-- | modules/comment/comment.module | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 855ed2e81..2fa9bdfb1 100644 --- a/modules/comment/comment.module +++ b/modules/comment/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; } |