diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-21 00:48:12 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-21 00:48:12 +0100 |
commit | 7e78f8e15a536dc57b6fad959fce286b8fc5345c (patch) | |
tree | eb73158aefef36c66cf5289787663f39b1600905 /settings/templates/users.php | |
parent | 24e0a2a358c1febfe7b6fc46cb6e9f65df66fcdf (diff) | |
download | nextcloud-server-7e78f8e15a536dc57b6fad959fce286b8fc5345c.tar.gz nextcloud-server-7e78f8e15a536dc57b6fad959fce286b8fc5345c.zip |
moving logic from template to the 'controller'
THX @VicDeo
Diffstat (limited to 'settings/templates/users.php')
-rw-r--r-- | settings/templates/users.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php index 143dc52af5c..e8bf9edf604 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -50,7 +50,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>; </option> <?php endif;?> <?php endforeach;?> - <?php if(array_search($_['default_quota'], $_['quota_preset'])===false && array_search($_['default_quota'], array('none', 'default'))===false):?> + <?php if($_['defaultQuotaIsUserDefined']):?> <option selected="selected" value='<?php echo $_['default_quota'];?>'> <?php echo $_['default_quota'];?> @@ -144,7 +144,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>; <?php echo $preset;?> </option> <?php endforeach;?> - <?php if(array_search($user['quota'], $_['quota_preset'])===false && array_search($user['quota'], array('none', 'default'))===false):?> + <?php if($user['isQuotaUserDefined']):?> <option selected="selected" value='<?php echo $user['quota'];?>'> <?php echo $user['quota'];?> </option> |