[31371] trunk/www/includes/common.inc
jmpp at macports.org
jmpp at macports.org
Wed Nov 21 12:10:44 PST 2007
Revision: 31371
http://trac.macosforge.org/projects/macports/changeset/31371
Author: jmpp at macports.org
Date: 2007-11-21 12:10:42 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
Count explicitly from the 'name' column in the portfiles table, for clarity's sake.
Modified Paths:
--------------
trunk/www/includes/common.inc
Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc 2007-11-21 19:50:18 UTC (rev 31370)
+++ trunk/www/includes/common.inc 2007-11-21 20:10:42 UTC (rev 31371)
@@ -89,7 +89,7 @@
function ports_count() {
global $portsdb;
- $result = mysql_query("SELECT count(*) FROM $portsdb.portfiles") or die("Error: " . mysql_error());
+ $result = mysql_query("SELECT count(name) FROM $portsdb.portfiles") or die("Error: " . mysql_error());
if ($result) {
$row = mysql_fetch_array($result);
$count = $row[0];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071121/3b7491e6/attachment.html
More information about the macports-changes
mailing list