From 18dd81e15a1159e73f0371e91b62640db3f5e9bf Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 22 May 2009 12:58:28 +0000 Subject: Closes #1031: Restored wildcard as it didn't appear that slow. git-svn-id: https://code.elgg.org/elgg/trunk@3299 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/users.php b/engine/lib/users.php index ab1482b27..17ef2cd40 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -858,7 +858,7 @@ } $query .= "from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}users_entity u on e.guid=u.guid where "; // $query .= " match(u.name,u.username) against ('$criteria') "; - $query .= "(u.name like \"{$criteria}%\" or u.username like \"{$criteria}%\")"; + $query .= "(u.name like \"%{$criteria}%\" or u.username like \"%{$criteria}%\")"; $query .= " and $access"; if (!$count) { -- cgit v1.2.3