summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-06-30 20:43:50 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-30 20:43:50 +0200
commit16275eca845f7bb7c4872f1120f76177f593a693 (patch)
tree96c9c841c3b4a6cfffc1c8e95262d93dd05215be /lib/private/user
parentf3ecf819ec8e6841be62603c3e8a1e255fc6522d (diff)
downloadnextcloud-server-16275eca845f7bb7c4872f1120f76177f593a693.tar.gz
nextcloud-server-16275eca845f7bb7c4872f1120f76177f593a693.zip
loop over usernames, not passwords
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/dummy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/dummy.php b/lib/private/user/dummy.php
index 1d20bd31119..dbcbb2a46f7 100644
--- a/lib/private/user/dummy.php
+++ b/lib/private/user/dummy.php
@@ -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;
}