Skip to content
Snippets Groups Projects
Commit 16275eca authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

loop over usernames, not passwords

parent f3ecf819
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class OC_User_Dummy extends OC_User_Backend {
return array_keys($this->users);
}
$result = array();
foreach($this->users as $user) {
foreach(array_keys($this->users) as $user) {
if(stripos($user, $search) !== false) {
$result[] = $user;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment