From: Michael M Slusarz Date: Thu, 29 Jan 2009 04:19:19 +0000 (-0700) Subject: Fix stats script. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=31f9fabc0448841ff0d993db47ebac26075b1e39;p=horde.git Fix stats script. --- 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);