cvs: phpweb / search.php
| From: | Gabor Hojtsy | Date: | Wed, 23 Apr 2003 16:21:11 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-16950@lists.php.net to get a copy of this message | ||
goba Wed Apr 23 12:21:11 2003 EDT
Modified files:
/phpweb search.php
Log:
Recover from another htdig error
Index: phpweb/search.php
diff -u phpweb/search.php:1.69 phpweb/search.php:1.70
--- phpweb/search.php:1.69 Wed Apr 23 12:07:11 2003
+++ phpweb/search.php Wed Apr 23 12:21:11 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: search.php,v 1.69 2003/04/23 16:07:11 goba Exp $ */
+/* $Id: search.php,v 1.70 2003/04/23 16:21:11 goba Exp $ */
include_once "prepend.inc";
@@ -231,6 +231,9 @@
// We have matches, so grab the info from the output
// (the template for this is phphead.html in Mirrors-htdig.tgz)
list(, , $matches, $firstdisplayed, $lastdisplayed, $page, $pages) = $result;
+
+ // Detect htsearch error, which is returned in a HTML output file
+ if (strpos($matches, "error") > 0) { searchError(); }
// String to carry on the search parameters in prev/next URLs
$baseurl = $PHP_SELF . "?pattern=" . urlencode($pattern) .
"&show=$show";