From 022a7b13b828fd1ffb4beb7f63cca45bf4ffff1e Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Mon, 28 Jan 2013 13:12:44 +0100 Subject: prepare user table to show and edit display names --- settings/users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'settings/users.php') diff --git a/settings/users.php b/settings/users.php index d779cc782ce..df7cf8ac1d5 100644 --- a/settings/users.php +++ b/settings/users.php @@ -42,7 +42,7 @@ $defaultQuota=OC_Appconfig::getValue('files', 'default_quota', 'none'); $defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false && array_search($defaultQuota, array('none', 'default'))===false; // load users and quota -foreach($accessibleusers as $displayName => $uid) { +foreach($accessibleusers as $uid => $displayName) { $quota=OC_Preferences::getValue($i, 'files', 'quota', 'default'); $isQuotaUserDefined=array_search($quota, $quotaPreset)===false && array_search($quota, array('none', 'default'))===false; @@ -52,8 +52,8 @@ foreach($accessibleusers as $displayName => $uid) { } $users[] = array( - "name" => $name, - "uid" => $uid, + "name" => $uid, + "displayName" => $displayName, "groups" => join( ", ", /*array_intersect(*/OC_Group::getUserGroups($uid)/*, OC_SubAdmin::getSubAdminsGroups(OC_User::getUser()))*/), 'quota'=>$quota, 'isQuotaUserDefined'=>$isQuotaUserDefined, -- cgit v1.2.3