Fix undefined $total in stats-fe
authorDan
Sat, 15 Nov 2008 15:38:21 -0500
changeset 28 a7e537c0b549
parent 27 4a9469bada05
child 29 300f673fbbdc
Fix undefined $total in stats-fe
stats-fe.php
--- a/stats-fe.php	Sat Nov 15 15:33:51 2008 -0500
+++ b/stats-fe.php	Sat Nov 15 15:38:21 2008 -0500
@@ -77,6 +77,7 @@
   $channel = db_escape($channel);
   $time_min = $base - ( $mins * 60 );
   $time_max =& $base;
+  $total = 0;
   
   if ( $q = eb_mysql_query("SELECT nick FROM stats_messages WHERE channel = '$channel' AND time >= $time_min AND time <= $time_max;") )
   {