From 6e8a0a16023e3af72e5b42d3e6e7b6cd6c3bc512 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 9 Oct 2006 06:59:01 +0000 Subject: - Patch #87755 by kjartan: anonymous comments can't save names. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') 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; } -- cgit v1.2.3