[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14902: (ticket:72) Fixing SQL error (torstatus/trunk/web)



Author: kasimir
Date: 2008-06-02 19:27:52 -0400 (Mon, 02 Jun 2008)
New Revision: 14902

Modified:
   torstatus/trunk/web/network_detail.php
Log:
(ticket:72) Fixing SQL error

Modified: torstatus/trunk/web/network_detail.php
===================================================================
--- torstatus/trunk/web/network_detail.php	2008-06-02 16:05:28 UTC (rev 14901)
+++ torstatus/trunk/web/network_detail.php	2008-06-02 23:27:52 UTC (rev 14902)
@@ -75,7 +75,7 @@
 $RouterCount = $record['Count'];
 
 // Perform CountryCode aggregate query
-$query = "select CountryCode, count(CountryCode) as Count, FRunning from $ActiveNetworkStatusTable group by CountryCode HAVING FRunning = 1";
+$query = "select CountryCode, count(CountryCode) as Count, FRunning from $ActiveNetworkStatusTable WHERE FRunning='1' group by CountryCode";
 $result = mysql_query($query) or die('Query failed: ' . mysql_error());
 
 while ($record = mysql_fetch_assoc($result))