<?php
/**
+ * Stats script.
+ *
* Copyright 2000-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
$extraLink = Chora::getFileViews($where, 'stats');
$stats = array();
-foreach ($fl->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);