diff --git a/core/modules/user/user.pages.inc b/core/modules/user/user.pages.inc index 7bf786e004a..c54bd4c9309 100644 --- a/core/modules/user/user.pages.inc +++ b/core/modules/user/user.pages.inc @@ -12,8 +12,8 @@ function user_autocomplete($string = '') { $matches = array(); if ($string) { $result = db_select('users')->fields('users', array('name'))->condition('name', db_like($string) . '%', 'LIKE')->range(0, 10)->execute(); - foreach ($result as $user) { - $matches[$user->name] = check_plain($user->name); + foreach ($result as $account) { + $matches[$account->name] = check_plain($account->name); } }