Update of /cvsroot/fink/web/pdb In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv23134
Modified Files: Tag: pdb_solr browse.php handle_options.inc Log Message: a little cleanup of variable handling Index: handle_options.inc =================================================================== RCS file: /cvsroot/fink/web/pdb/Attic/handle_options.inc,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- handle_options.inc 4 Dec 2007 15:30:27 -0000 1.1.2.1 +++ handle_options.inc 4 Dec 2007 15:34:57 -0000 1.1.2.2 @@ -125,7 +125,7 @@ // We need to set a specific distribution if showing packages in "testing" // Select the one with the highest priority -if ($tree == 'testing' && !$dist) { +if ($tree == 'testing' && empty($dist)) { foreach($distributions as $d) { $dist = $d; } Index: browse.php =================================================================== RCS file: /cvsroot/fink/web/pdb/browse.php,v retrieving revision 1.12.2.5 retrieving revision 1.12.2.6 diff -u -d -r1.12.2.5 -r1.12.2.6 --- browse.php 4 Dec 2007 15:30:25 -0000 1.12.2.5 +++ browse.php 4 Dec 2007 15:34:57 -0000 1.12.2.6 @@ -53,11 +53,11 @@ // Distribution values $dist_values = array('' => 'Any'); -foreach ($distributions as $dist) { - if (!$showall and !$dist->isVisible()) { +foreach ($distributions as $d) { + if (!$showall and !$d->isVisible()) { continue; } - $dist_values[$dist->getId()] = $dist->getDescription(); + $dist_values[$d->getId()] = $d->getDescription(); } // Allowed values for certain fields @@ -159,9 +159,9 @@ } if ($section == "testing") { - foreach ($packages as $name => $p) { - if ($p['version_stable'] == $p['version_unstable']) - unset($packages[$name]); + foreach ($packages as $id => $ppackage) { + if ($package['version_stable'] == $package['version_unstable']) + unset($packages[$id]); } } ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs