From a9bb68d98fb7eccd654a3f70bb21fd9ae82df0f2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 Mar 2001 07:19:13 +0000 Subject: - removed debug statement --- modules/rating.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/rating.module b/modules/rating.module index dfae07594..c0052f66d 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -26,7 +26,7 @@ function rating_cron() { $bonus -= $story->number / 2; } - $r4 = db_query("SELECT score, votes FROM comments WHERE author = '$rating->id' AND (". time() ." - timestamp < $period) ORDER BY timestamp LIMIT $number", 1); + $r4 = db_query("SELECT score, votes FROM comments WHERE author = '$rating->id' AND (". time() ." - timestamp < $period) ORDER BY timestamp LIMIT $number"); while ($comment = db_fetch_object($r4)) { $weight++; $score += $weight * $comment->score; -- cgit v1.2.3