diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-30 19:18:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-30 19:18:47 +0000 |
commit | 886ae2bf158ef289766d8ea65966e6477423e03a (patch) | |
tree | d9535a634a04eacd9e60dfbb6674441f79ef6b72 /includes | |
parent | 74d9266b3f2e0480c8efe7b938d2d213ecca3f19 (diff) | |
download | brdo-886ae2bf158ef289766d8ea65966e6477423e03a.tar.gz brdo-886ae2bf158ef289766d8ea65966e6477423e03a.tar.bz2 |
- Fixed some "search related" bugs introduced by Moshe's latest patch.
Fixes bug #2127.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/common.inc b/includes/common.inc index a60265314..910174e19 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -339,7 +339,7 @@ function search_item($item, $type) { * @param $options != 0: Render additional form fields/text * ("Restrict search to", help text, etc). */ -function search_form($action = 0, $keys = 0, $options = 0) { +function search_form($action = NULL, $keys = NULL, $options = NULL) { if (!$action) { $action = url("search"); @@ -400,11 +400,9 @@ function search_data($keys = NULL) { * @param $options != 0: Render additional form fields/text * ("Restrict search to", help text, etc). */ -function search_type($type = 0, $action = 0, $keys = 0, $options = 0) { +function search_type($type, $action = NULL, $keys = NULL, $options = NULL) { - if (isset($type)) { - $_POST["edit"]["type"][$type] = "on"; - } + $_POST["edit"]["type"][$type] = "on"; return search_form($action, $keys, $options) . "<br />". search_data($keys); } |