diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-11 11:11:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-11 11:11:33 +0000 |
commit | 3e062ff608a92c0c6161dfb20323b5e7953e8486 (patch) | |
tree | dc2404e2afda2a5c7f30e9ffcd2a99cc61d89a52 /engine | |
parent | 33e60e996e44d353b4e0c142b52311e44b847516 (diff) | |
download | elgg-3e062ff608a92c0c6161dfb20323b5e7953e8486.tar.gz elgg-3e062ff608a92c0c6161dfb20323b5e7953e8486.tar.bz2 |
Removing wildcard from the beginning of 'like' search for user/username
git-svn-id: https://code.elgg.org/elgg/trunk@2716 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index ca68c0fed..f16f5c0f6 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -853,7 +853,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) {
|