summaryrefslogtreecommitdiffstats
path: root/settings/users.php
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-08-29 11:27:23 -0400
committerClark Tomlinson <fallen013@gmail.com>2014-09-05 11:23:59 -0400
commit6a56e03d482e723356b79e8d652922329daea1a4 (patch)
tree3ce513df15a9ec781b4d1ee6137f3fe851de122e /settings/users.php
parent033b0361edb206ac3c8303a0d8003fd6752d6f75 (diff)
downloadnextcloud-server-6a56e03d482e723356b79e8d652922329daea1a4.tar.gz
nextcloud-server-6a56e03d482e723356b79e8d652922329daea1a4.zip
Using countUsers method to return true count of users
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php35
1 files changed, 17 insertions, 18 deletions
diff --git a/settings/users.php b/settings/users.php
index bc6c2ea7e7c..94dda43c523 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -60,13 +60,13 @@ $defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false
// load users and quota
foreach($accessibleUsers as $uid => $displayName) {
- $quota=OC_Preferences::getValue($uid, 'files', 'quota', 'default');
- $isQuotaUserDefined=array_search($quota, $quotaPreset)===false
- && array_search($quota, array('none', 'default'))===false;
+ $quota = OC_Preferences::getValue($uid, 'files', 'quota', 'default');
+ $isQuotaUserDefined = array_search($quota, $quotaPreset) === false
+ && array_search($quota, array('none', 'default')) === false;
$name = $displayName;
- if ( $displayName !== $uid ) {
- $name = $name . ' ('.$uid.')';
+ if ($displayName !== $uid) {
+ $name = $name . ' (' . $uid . ')';
}
$user = $userManager->get($uid);
@@ -82,17 +82,16 @@ foreach($accessibleUsers as $uid => $displayName) {
);
}
-$tmpl = new OC_Template( "settings", "users/main", "user" );
-$tmpl->assign( 'users', $users );
-$tmpl->assign( 'groups', $groups );
-$tmpl->assign( 'adminGroup', $adminGroup );
-$tmpl->assign( 'isAdmin', (int) $isAdmin);
-$tmpl->assign( 'subadmins', $subadmins);
-$tmpl->assign('usercount', count($users));
-$tmpl->assign( 'numofgroups', count($groups) + count($adminGroup));
-$tmpl->assign( 'quota_preset', $quotaPreset);
-$tmpl->assign( 'default_quota', $defaultQuota);
-$tmpl->assign( 'defaultQuotaIsUserDefined', $defaultQuotaIsUserDefined);
-$tmpl->assign( 'recoveryAdminEnabled', $recoveryAdminEnabled);
-$tmpl->assign( 'enableAvatars', \OC_Config::getValue('enable_avatars', true));
+$tmpl = new OC_Template("settings", "users/main", "user");
+$tmpl->assign('users', $users);
+$tmpl->assign('groups', $groups);
+$tmpl->assign('adminGroup', $adminGroup);
+$tmpl->assign('isAdmin', (int)$isAdmin);
+$tmpl->assign('subadmins', $subadmins);
+$tmpl->assign('numofgroups', count($groups) + count($adminGroup));
+$tmpl->assign('quota_preset', $quotaPreset);
+$tmpl->assign('default_quota', $defaultQuota);
+$tmpl->assign('defaultQuotaIsUserDefined', $defaultQuotaIsUserDefined);
+$tmpl->assign('recoveryAdminEnabled', $recoveryAdminEnabled);
+$tmpl->assign('enableAvatars', \OC::$server->getConfig()->getSystemValue('enable_avatars', true));
$tmpl->printPage();