diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 5da54b2f258..27bf4ab7db6 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -656,7 +656,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) { // '===' because we want to modify anonymous users too $edit['name'] = $user->name; }