summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-10-09 06:59:01 +0000
committerDries Buytaert <dries@buytaert.net>2006-10-09 06:59:01 +0000
commit6e8a0a16023e3af72e5b42d3e6e7b6cd6c3bc512 (patch)
tree31b853918a47782f825013cc598fb144a4b56e99 /modules/comment/comment.module
parent2378379131f364fe8fdc9ee2a6d2214bf458c7dc (diff)
downloadbrdo-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.module2
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;
}