Update of /cvsroot/fink/web/pdb In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv7892
Modified Files: browse.php Log Message: only print the parens if we have a query Index: browse.php =================================================================== RCS file: /cvsroot/fink/web/pdb/browse.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- browse.php 12 Dec 2007 03:43:33 -0000 1.25 +++ browse.php 14 Dec 2007 15:39:47 -0000 1.26 @@ -17,7 +17,7 @@ $pdb_title = "Package Database - Browse"; $desc = get_query_description(); -if ($desc) $pdb_title .= htmlentities(" ($desc)"); +if (!empty($desc)) $pdb_title .= htmlentities(" ($desc)"); include_once "header.inc"; ?> @@ -191,7 +191,13 @@ ?> <h1> Matched <?=$count?> -package<?=($count==1 ? '' : 's')?><?=($maintainer=='None' ? ' without maintainer' : '')?><?=($tree=='testing' ? ' that need testing' : '')?> (<?= get_query_description() ?>) +package<?=($count==1 ? '' : 's')?><?=($maintainer=='None' ? ' without maintainer' : '')?><?=($tree=='testing' ? ' that need testing' : '')?> +<? + $qdesc = get_query_description(); + if (!empty($qdesc)) { + print '(' . $qdesc . ')'; + } +?> </h1> <? if ($count > 0) { ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs