From 48991dbb5ae7feeae5da14b1812078c04091b888 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Mar 2009 23:28:18 +0000 Subject: [PATCH] Changed the search form to be faster by not doing wildcard searches --- pages/account/43.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/account/43.php b/pages/account/43.php index 00aa647..2cf09ae 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -25,8 +25,11 @@ if(intval(array_key_exists('userid',$_REQUEST)?$_REQUEST['userid']:0) <= 0) { $emailsearch = $email = mysql_escape_string(stripslashes($_REQUEST['email'])); - if(!strstr($email, "%")) - $emailsearch = "%$email%"; + + //Disabled to speed up the queries + //if(!strstr($email, "%")) + // $emailsearch = "%$email%"; + if(intval($email) > 0) $emailsearch = "";