cvs: phpweb / search.php
| From: | Gabor Hojtsy | Date: | Sat, 14 Dec 2002 18:25:38 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14178@lists.php.net to get a copy of this message | ||
goba Sat Dec 14 13:25:38 2002 EDT
Modified files:
/phpweb search.php
Log:
The exact two requirements for the search to work are
the have_search() true return value and the
$htsearch_prog variable's existance
Index: phpweb/search.php
diff -u phpweb/search.php:1.42 phpweb/search.php:1.43
--- phpweb/search.php:1.42 Sat Dec 14 12:56:13 2002
+++ phpweb/search.php Sat Dec 14 13:25:38 2002
@@ -81,7 +81,7 @@
// If some local search is needed and we have no support for
// it, send the user to the central search page on php.net
- if (!have_search()) {
+ if (!have_search() || !isset($htsearch_prog)) {
$location = "http://www.php.net/search.php";
$query = "show=" . $show . "&pattern=" . urlencode($pattern) .
"&base=" . urlencode($MYSITE);
header("Location: $location?$query");