diff --git a/ext/comment/theme.php b/ext/comment/theme.php index e4b63f04..acdabed2 100644 --- a/ext/comment/theme.php +++ b/ext/comment/theme.php @@ -171,14 +171,14 @@ class CommentListTheme extends Themelet { $anoncode2 = ""; if($this->show_anon_id) { $anoncode = ''.$this->anon_id.''; - } - if($user->can("view_ip")) { - #$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'"; - if(!array_key_exists($comment->poster_ip, $this->anon_map)) { - $this->anon_map[$comment->poster_ip] = $this->anon_id; - } - if($this->anon_map[$comment->poster_ip] != $this->anon_id) { - $anoncode2 = '('.$this->anon_map[$comment->poster_ip].')'; + if($user->can("view_ip")) { + #$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'"; + if(!array_key_exists($comment->poster_ip, $this->anon_map)) { + $this->anon_map[$comment->poster_ip] = $this->anon_id; + } + if($this->anon_map[$comment->poster_ip] != $this->anon_id) { + $anoncode2 = '('.$this->anon_map[$comment->poster_ip].')'; + } } } $h_userlink = "" . $h_name . $anoncode . $anoncode2 . "";