diff options
-rw-r--r-- | settings/templates/users/part.setquota.php | 4 | ||||
-rw-r--r-- | settings/users.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/settings/templates/users/part.setquota.php b/settings/templates/users/part.setquota.php index 4b650002a7f..e246a94ad29 100644 --- a/settings/templates/users/part.setquota.php +++ b/settings/templates/users/part.setquota.php @@ -5,7 +5,7 @@ <div class="quota"> <!-- Default storage --> <span><?php p($l->t('Default Quota'));?></span> - <?php if((bool) $_['isadmin']): ?> + <?php if((bool) $_['isAdmin']): ?> <select class='quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>"> <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> <?php p($l->t('Unlimited'));?> @@ -28,7 +28,7 @@ </option> </select> <?php endif; ?> - <?php if((bool) !$_['isadmin']): ?> + <?php if((bool) !$_['isAdmin']): ?> <select class='quota' disabled="disabled"> <option selected="selected"> <?php p($_['default_quota']);?> diff --git a/settings/users.php b/settings/users.php index a1a1a41e67f..76431e78513 100644 --- a/settings/users.php +++ b/settings/users.php @@ -33,16 +33,16 @@ if (isset($_GET['limit'])) { $limit = 10; } -$isadmin = OC_User::isAdminUser(OC_User::getUser()); +$isAdmin = OC_User::isAdminUser(OC_User::getUser()); -$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isadmin, $groupManager); +$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager); $groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT); list($adminGroup, $groups) = $groupsInfo->get(); $recoveryAdminEnabled = OC_App::isEnabled('files_encryption') && OC_Appconfig::getValue( 'files_encryption', 'recoveryAdminEnabled' ); -if($isadmin) { +if($isAdmin) { $accessibleusers = OC_User::getDisplayNames('', 30); $subadmins = OC_SubAdmin::getAllSubAdmins(); }else{ @@ -90,7 +90,7 @@ $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( 'isAdmin', (int) $isAdmin); $tmpl->assign( 'subadmins', $subadmins); $tmpl->assign( 'numofgroups', count($groups) + count($adminGroup)); $tmpl->assign( 'quota_preset', $quotaPreset); |