aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-22 12:58:28 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-22 12:58:28 +0000
commit18dd81e15a1159e73f0371e91b62640db3f5e9bf (patch)
tree34da63ef6d419cca8f9afc8774b9f1c270a7c27d
parentfd24866b8983e652d8b68cd65d7d22dc2731278d (diff)
downloadelgg-18dd81e15a1159e73f0371e91b62640db3f5e9bf.tar.gz
elgg-18dd81e15a1159e73f0371e91b62640db3f5e9bf.tar.bz2
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
-rw-r--r--engine/lib/users.php2
1 files changed, 1 insertions, 1 deletions
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) {