From 8c792556e6f472022042772a06d296ab4ef663fd Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 24 Apr 2007 16:35:48 +0000 Subject: [PATCH] bug when disabling anonymous comments git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@8 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/comment.ext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/comment.ext.php b/ext/comment.ext.php index aa1ba7dc..9c4d46e0 100644 --- a/ext/comment.ext.php +++ b/ext/comment.ext.php @@ -335,6 +335,7 @@ class CommentList extends Extension { private function can_comment() { global $config; + global $user; return ($config->get_bool('comment_anon') || !$user->is_anonymous()); }