cvs: pearweb /public_html/bugs search.php
| From: | Tomas V.V.Cox | Date: | Mon, 08 Sep 2003 19:02:23 +0000 |
| Subject: | cvs: pearweb /public_html/bugs search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12556@lists.php.net to get a copy of this message | ||
cox Mon Sep 8 15:02:23 2003 EDT
Modified files:
/pearweb/public_html/bugs search.php
Log:
Show no bugs found instead of the search menu
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.1 pearweb/public_html/bugs/search.php:1.2
--- pearweb/public_html/bugs/search.php:1.1 Mon Sep 8 14:25:27 2003
+++ pearweb/public_html/bugs/search.php Mon Sep 8 15:02:23 2003
@@ -141,7 +141,9 @@
$total_rows = $rows < 10 ? $rows : $begin + $rows + 10;
if (!$rows) {
- $errors[] = "No bugs were found.";
+ show_bugs_menu($bug_type[0]);
+ $errors[] = "No bugs were found.";
+ display_errors($errors);
}
else {
@@ -168,7 +170,7 @@
"&boolean=" . BOOLEAN_SEARCH .
"&author_email=". urlencode(stripslashes($author_email)) .
"&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction&phpver=$phpver&limit=$limit&assign=$assign";
- show_bugs_menu($type_str);
+ show_bugs_menu($bug_type[0]);
?>
<table align="center" border="0" cellspacing="2"
width="95%">
<?php show_prev_next($begin,$rows,$total_rows,$link,$limit);?>
@@ -210,9 +212,9 @@
?>
</table>
<?php
+ }
commonFooter();
exit;
- }
}
}