From b46f9a846fb90d3e9c0b569dd1e70f4923d3ef64 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Oct 2000 06:44:11 +0000 Subject: Bugfixes, amongst them: - anonymous chicken was able to moderate commnets - "anonymous chicken" was displayed in the comment reply form - ... The only thing left to be done is to tackle (or continue tackling) the user accounts which in fact is quite some work. :o) --- includes/template.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/template.inc') diff --git a/includes/template.inc b/includes/template.inc index 08d469d94..8e86620a0 100644 --- a/includes/template.inc +++ b/includes/template.inc @@ -61,13 +61,13 @@ function display_old_headlines($theme, $num = 10) { function display_comment_moderation($id, $author, $score, $votes) { global $user, $comment_votes; - if ($user && $user->userid != $author && !user_getHistory($user->history, "c$id")) { + if ($user->userid && $user->userid != $author && !user_getHistory($user->history, "c$id")) { $output .= "\n"; } else { - $output .= "
score:$score
votes:$votes
"; + $output .= "
score:". format_data($score) ."
votes:". format_data($votes) ."
"; } print $output; -- cgit v1.2.3