diff options
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r-- | modules/user/user.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index 7a055eb97..a4909f846 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -13,7 +13,7 @@ function user_autocomplete($string = '') { $matches = array(); if ($string) { $result = db_query_range("SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER(:name)", array(':name' => $string .'%'), 0, 10); - while ($user = db_fetch_object($result)) { + foreach ($result as $user) { $matches[$user->name] = check_plain($user->name); } } |