htdocs/index.php
changeset 11 b3fec7467c05
parent 8 0acb8d9a3194
child 15 5e2d1514ccd0
--- 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>