cvs: phpweb / results.php

From: Date: Fri, 22 May 2009 08:28:45 +0000
Subject: cvs: phpweb / results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4832@lists.php.net to get a copy of this message
bjori Fri May 22 08:28:45 2009 UTC Modified files: /phpweb results.php Log: Fixed bug#45347 (Search results which link to gcov cause an error message.) http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.45&r2=1.46&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.45 phpweb/results.php:1.46 --- phpweb/results.php:1.45 Sat Jun 21 12:21:41 2008 +++ phpweb/results.php Fri May 22 08:28:45 2009 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.45 2008/06/21 12:21:41 bjori Exp $ +// $Id: results.php,v 1.46 2009/05/22 08:28:45 bjori Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -119,6 +119,11 @@ if($type=='smarty') continue; $display_title = str_replace(array('PHP:', '&amp;'), array('', '&'), $hit['Title']); + // Fall back to the PHP logo for unknown hits + if (!isset($types[$type])) { + $type = "php"; + } + // Fix &amp;gt; double escaping $summary = str_replace('&amp;', '&', $hit['Summary']); echo <<<EOB

« previous php.webmaster (#4832) next »