functions.inc.php: Fix mailbox check_mailbox() routine - if the domain has 0 for mailbox count it should allow unlimited mailboxes (not disable - which is -1)

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@455 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 78d499aa63
commit 60d1b54aaa

@ -635,13 +635,14 @@ function check_alias ($domain)
function check_mailbox ($domain)
{
$limit = get_domain_properties ($domain);
/* -1 = disable, 0 = unlimited */
if ($limit['mailboxes'] == 0)
{
return false;
return true;
}
if ($limit['mailboxes'] < 0)
{
return true;
return false;
}
if ($limit['mailbox_count'] >= $limit['mailboxes'])
{

Loading…
Cancel
Save