summaryrefslogtreecommitdiffstats
path: root/settings/ajax/setquota.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-17 15:32:03 +0200
committerkondou <kondou@ts.unde.re>2013-07-21 13:55:25 +0200
commit05084e03a08206b736abd04522e10c97cd3f2fc3 (patch)
tree1352f5011a523db520ee0e899db8426ecc3fc68f /settings/ajax/setquota.php
parent94fcbc736e3500e0107d8e4f1ce5a2133fcdd8d8 (diff)
downloadnextcloud-server-05084e03a08206b736abd04522e10c97cd3f2fc3.tar.gz
nextcloud-server-05084e03a08206b736abd04522e10c97cd3f2fc3.zip
Use !== and === in settings.
Diffstat (limited to 'settings/ajax/setquota.php')
-rw-r--r--settings/ajax/setquota.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php
index 8dcb7ddd424..2e6de2b759c 100644
--- a/settings/ajax/setquota.php
+++ b/settings/ajax/setquota.php
@@ -10,7 +10,7 @@ OCP\JSON::callCheck();
$username = isset($_POST["username"])?$_POST["username"]:'';
-if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))
+if(($username === '' && !OC_User::isAdminUser(OC_User::getUser()))
|| (!OC_User::isAdminUser(OC_User::getUser())
&& !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username))) {
$l = OC_L10N::get('core');
@@ -20,7 +20,7 @@ if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))
//make sure the quota is in the expected format
$quota=$_POST["quota"];
-if($quota!='none' and $quota!='default') {
+if($quota !== 'none' and $quota !== 'default') {
$quota= OC_Helper::computerFileSize($quota);
$quota=OC_Helper::humanFileSize($quota);
}
@@ -29,7 +29,7 @@ if($quota!='none' and $quota!='default') {
if($username) {
OC_Preferences::setValue($username, 'files', 'quota', $quota);
}else{//set the default quota when no username is specified
- if($quota=='default') {//'default' as default quota makes no sense
+ if($quota === 'default') {//'default' as default quota makes no sense
$quota='none';
}
OC_Appconfig::setValue('files', 'default_quota', $quota);