Commit 0de82eef authored by Dries's avatar Dries

- Patch #1454630 by mottihoresh: user_autocomplete() page callback uses as a...

- Patch #1454630 by mottihoresh: user_autocomplete() page callback uses  as a local variable (coding standards, bad example).
parent 938baf76
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment