From 035c796af2be58f5648c239cf1b60c6a0ba7e15a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 22 Dec 2005 20:04:31 +0000 Subject: [PATCH] r668: Don't need to define MODE --- search.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/search.php b/search.php index e86d2dc..f99eada 100644 --- a/search.php +++ b/search.php @@ -28,10 +28,9 @@ if (!can_perform('cansearch')) $message->error_permission(); } -define('MODE', intval($bugsys->in['mode'])); -define('MODE_ANY', (MODE == 1)); -define('MODE_ALL', (MODE == 2)); -define('MODE_RAW', (MODE == 3)); +define('MODE_ANY', ($bugsys->in['mode'] == 1)); +define('MODE_ALL', ($bugsys->in['mode'] == 2)); +define('MODE_RAW', ($bugsys->in['mode'] == 3)); define('SEARCH_WORD_MIN', 3); -- 2.43.5