From 4582eeccd0135fe93cebb88bddff9de9cd9673b8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 1 Jun 2003 19:51:40 +0000 Subject: - Another register globals fix. Patch by Kjartan. --- includes/common.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'includes') 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(); -- cgit v1.2.3