# HG changeset patch
# User Dan
# Date 1220177600 0
# Node ID b3fec7467c05234be1b25a07446955f4ba12b9c6
# Parent a97bd37e43e9263ce9ee9310edc881b2c8f57076
Fixed $nick being overwritten in index
diff -r a97bd37e43e9 -r b3fec7467c05 htdocs/index.php
--- 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 '
No recent posts.';
- foreach ( $datum as $nick => $pct )
+ foreach ( $datum as $usernick => $pct )
{
$total = round($pct * $count);
$pct = round(100 * $pct, 1);
- echo "$nick - $pct% ($total)\n";
+ echo "$usernick - $pct% ($total)\n";
}
?>
@@ -75,11 +75,11 @@
$count = stats_message_count($channel, 20);
if ( empty($datum) )
echo 'No recent posts.';
- foreach ( $datum as $nick => $pct )
+ foreach ( $datum as $usernick => $pct )
{
$total = round($pct * $count);
$pct = round(100 * $pct, 1);
- echo "$nick - $pct% ($total)\n";
+ echo "$usernick - $pct% ($total)\n";
}
?>