Fixed $nick being overwritten in index
authorDan
Sun, 31 Aug 2008 10:13:20 +0000
changeset 11 b3fec7467c05
parent 10 a97bd37e43e9
child 12 7f043e712c35
Fixed $nick being overwritten in index
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 '<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>