loop over usernames, not passwords

This commit is contained in:
Arthur Schiwon 2014-06-30 20:43:50 +02:00
parent f3ecf819ec
commit 16275eca84

View file

@ -109,7 +109,7 @@ class OC_User_Dummy extends OC_User_Backend {
return array_keys($this->users); return array_keys($this->users);
} }
$result = array(); $result = array();
foreach($this->users as $user) { foreach(array_keys($this->users) as $user) {
if(stripos($user, $search) !== false) { if(stripos($user, $search) !== false) {
$result[] = $user; $result[] = $user;
} }