From 16275eca845f7bb7c4872f1120f76177f593a693 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 30 Jun 2014 20:43:50 +0200 Subject: loop over usernames, not passwords --- lib/private/user/dummy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3