summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-21 18:36:12 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-21 18:36:12 +0000
commitecc279aef61d7518202b36f8f899168c1a364378 (patch)
tree6519f168134edcad572643f219141026e12f9981
parent1b388b46536faace2b4458160bc40f861496fe36 (diff)
downloadbrdo-ecc279aef61d7518202b36f8f899168c1a364378.tar.gz
brdo-ecc279aef61d7518202b36f8f899168c1a364378.tar.bz2
- Patch #37416 by Zen: make auto-completion of usernames work with short names.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index fdfc86c5c..aef140a7e 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1916,7 +1916,7 @@ function _user_forms(&$edit, $account, $category, $hook = 'form') {
*/
function user_autocomplete($string) {
$matches = array();
- $result = db_query_range('SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER("%%%s%%")', $string, 0, 10);
+ $result = db_query_range('SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER("%s%%")', $string, 0, 10);
while ($user = db_fetch_object($result)) {
$matches[$user->name] = check_plain($user->name);
}
diff --git a/modules/user/user.module b/modules/user/user.module
index fdfc86c5c..aef140a7e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1916,7 +1916,7 @@ function _user_forms(&$edit, $account, $category, $hook = 'form') {
*/
function user_autocomplete($string) {
$matches = array();
- $result = db_query_range('SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER("%%%s%%")', $string, 0, 10);
+ $result = db_query_range('SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER("%s%%")', $string, 0, 10);
while ($user = db_fetch_object($result)) {
$matches[$user->name] = check_plain($user->name);
}