--- a/htdocs/index.php Sun Aug 31 10:13:05 2008 +0000
+++ b/htdocs/index.php Sun Aug 31 10:13:20 2008 +0000
@@ -60,11 +60,11 @@
$count = stats_message_count($channel, 3);
if ( empty($datum) )
echo '<li>No recent posts.</li>';
- foreach ( $datum as $nick => $pct )
+ foreach ( $datum as $usernick => $pct )
{
$total = round($pct * $count);
$pct = round(100 * $pct, 1);
- echo "<li>$nick - $pct% ($total)</li>\n";
+ echo "<li>$usernick - $pct% ($total)</li>\n";
}
?>
</ul>
@@ -75,11 +75,11 @@
$count = stats_message_count($channel, 20);
if ( empty($datum) )
echo '<li>No recent posts.</li>';
- foreach ( $datum as $nick => $pct )
+ foreach ( $datum as $usernick => $pct )
{
$total = round($pct * $count);
$pct = round(100 * $pct, 1);
- echo "<li>$nick - $pct% ($total)</li>\n";
+ echo "<li>$usernick - $pct% ($total)</li>\n";
}
?>
</ul>