From 9a1317edc95d81bcf41f5d4b51d13395c75caea6 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 31 May 2011 22:52:51 +0000 Subject: [PATCH] functions.inc.php: - check_quota(): whitespace changes only git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1066 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 4027b821..ab869a2a 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -683,27 +683,21 @@ function check_quota ($quota, $domain, $username="") { $rval = false; $limit = get_domain_properties ($domain); - if ($limit['maxquota'] == 0) - { + if ($limit['maxquota'] == 0) { $rval = true; # maxquota unlimited -> OK, but domain level quota could still be hit } - if (($limit['maxquota'] < 0) and ($quota < 0)) - { + if (($limit['maxquota'] < 0) and ($quota < 0)) { return true; # maxquota and $quota are both disabled -> OK, no need for more checks } - if (($limit['maxquota'] > 0) and ($quota == 0)) - { + if (($limit['maxquota'] > 0) and ($quota == 0)) { return false; # mailbox with unlimited quota on a domain with maxquota restriction -> not allowed, no more checks needed } - if ($limit['maxquota'] != 0 && $quota > $limit['maxquota']) - { + if ($limit['maxquota'] != 0 && $quota > $limit['maxquota']) { return false; # mailbox bigger than maxquota restriction (and maxquota != unlimited) -> not allowed, no more checks needed - } - else - { + } else { $rval = true; # mailbox size looks OK, but domain level quota could still be hit }