From: kkalev Date: Thu, 28 Aug 2003 13:01:59 +0000 (+0000) Subject: Also check for $server != '' in stats.php3. Bug noted by Ulrich Walcher --- diff --git a/Changelog b/Changelog index a5a7820..00d41e3 100644 --- a/Changelog +++ b/Changelog @@ -39,6 +39,7 @@ Ver 1.63: * Add a user input tag in user_stats.php3 * Change AcctStopTime = '0' with AcctStopTime IS NULL * Add a few more attribute help pages from Ulrich Walcher +* Also check for $server != '' in stats.php3. Bug noted by Ulrich Walcher Ver 1.62: * Remove one sql query from user_admin which was not needed. * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime diff --git a/htdocs/stats.php3 b/htdocs/stats.php3 index 94bf573..4925a54 100644 --- a/htdocs/stats.php3 +++ b/htdocs/stats.php3 @@ -89,7 +89,7 @@ while(1){ $servers[$name] = $config[$ip]; $i++; } -if ($server != 'all') +if ($server != 'all' && $server != '') $s = "AND NASIPAddress = '$server'"; $link = @da_sql_pconnect($config);