diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-10-09 06:59:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-10-09 06:59:01 +0000 |
commit | 6e8a0a16023e3af72e5b42d3e6e7b6cd6c3bc512 (patch) | |
tree | 31b853918a47782f825013cc598fb144a4b56e99 /modules/comment/comment.module | |
parent | 2378379131f364fe8fdc9ee2a6d2214bf458c7dc (diff) | |
download | brdo-6e8a0a16023e3af72e5b42d3e6e7b6cd6c3bc512.tar.gz brdo-6e8a0a16023e3af72e5b42d3e6e7b6cd6c3bc512.tar.bz2 |
- Patch #87755 by kjartan: anonymous comments can't save names.
Diffstat (limited to 'modules/comment/comment.module')
-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 5da54b2f2..27bf4ab7d 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; } |