summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-01 19:51:40 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-01 19:51:40 +0000
commit4582eeccd0135fe93cebb88bddff9de9cd9673b8 (patch)
tree4c013385ca1a2c050aece08719b94c3dc6e381de
parentc9bdea34e3afce7f9244f769aed02524c51b18a2 (diff)
downloadbrdo-4582eeccd0135fe93cebb88bddff9de9cd9673b8.tar.gz
brdo-4582eeccd0135fe93cebb88bddff9de9cd9673b8.tar.bz2
- Another register globals fix. Patch by Kjartan.
-rw-r--r--includes/common.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index aeec31e8a..0aa8b9001 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -388,10 +388,8 @@ function search_data() {
*/
function search_type($type = 0, $action = 0, $query = 0, $options = 0) {
- $edit = $_POST["edit"];
-
if (isset($type)) {
- $edit["type"][$type] = "on";
+ $_POST["edit"]["type"][$type] = "on";
}
return search_form($action, $query, $options) . search_data();