[35217] trunk/www/ports.php
jmpp at macports.org
jmpp at macports.org
Thu Mar 20 21:23:37 PDT 2008
Revision: 35217
http://trac.macosforge.org/projects/macports/changeset/35217
Author: jmpp at macports.org
Date: 2008-03-20 21:23:37 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
Platforms are mandatory in our Portfiles, so displaying empty lines for those that don't have any will only help in catching them.
Modified Paths:
--------------
trunk/www/ports.php
Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php 2008-03-21 04:22:44 UTC (rev 35216)
+++ trunk/www/ports.php 2008-03-21 04:23:37 UTC (rev 35217)
@@ -168,7 +168,7 @@
$nquery = 'SELECT platform FROM ' . $portsdb_name . '.platforms WHERE portfile=\'' . mysql_real_escape_string($row['name']) .
'\' ORDER BY platform';
$nresult = mysql_query($nquery);
- if ($nresult && mysql_num_rows($nresult) > 0) {
+ if ($nresult) {
print '<br /><i>Platforms:</i> ';
while ($nrow = mysql_fetch_row($nresult)) {
print '<a href="' . $_SERVER['PHP_SELF'] . '?by=platform&substr=' . urlencode($nrow[0]) . '">'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080320/57e8c736/attachment.html
More information about the macports-changes
mailing list