Changed the search form to be faster by not doing wildcard searches

pull/1/head
root 16 years ago
parent fa2302361f
commit 48991dbb5a

@ -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 = "";

Loading…
Cancel
Save