From 996b5cf36898a3b7644eca568df453b9d6cc4808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Mon, 28 Jan 2013 13:10:54 +0100 Subject: [PATCH] change order, key -> uid and value -> display name, this way it is also possible to have non-unique display names --- lib/user/backend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/user/backend.php b/lib/user/backend.php index ec43d7f187..fe37a64cc0 100644 --- a/lib/user/backend.php +++ b/lib/user/backend.php @@ -134,7 +134,7 @@ abstract class OC_User_Backend implements OC_User_Interface { /** * @brief Get a list of all display names - * @returns array with all displayNames (key) and the correspondig uids (value) + * @returns array with all displayNames (value) and the correspondig uids (key) * * Get a list of all display names and user ids. */ @@ -142,7 +142,7 @@ abstract class OC_User_Backend implements OC_User_Interface { $displayNames = array(); $users = $this->getUsers($search, $limit, $offset); foreach ( $users as $user) { - $displayNames[$user] = $user; + $displayNames[$user] = "foo"; } return $displayNames; }