From 31f9fabc0448841ff0d993db47ebac26075b1e39 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 28 Jan 2009 21:19:19 -0700 Subject: [PATCH] Fix stats script. --- chora/stats.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chora/stats.php b/chora/stats.php index 965a738fe..486ebffeb 100644 --- a/chora/stats.php +++ b/chora/stats.php @@ -1,5 +1,7 @@ logs as $lg) { +foreach ($fl->queryLogs() as $lg) { $qa = $lg->queryAuthor(); - if (!isset($stats[$qa])) { - $stats[$qa] = 0; - } - ++$stats[$qa]; + $stats[$qa] = isset($stats[$qa]) ? ($stats[$qa] + 1) : 1; } arsort($stats); -- 2.11.0