functions.inc.php: fix alias creation - 0 & -1 confusion again

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@459 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 6bff38ac45
commit 45b2df237c

@ -609,11 +609,12 @@ function check_alias ($domain)
$limit = get_domain_properties ($domain);
if ($limit['aliases'] == 0)
{
return false;
# 0 = unlimited, -1 = disabled
return true;
}
if ($limit['aliases'] < 0)
{
return true;
return false;
}
if ($limit['alias_count'] >= $limit['aliases'])
{

Loading…
Cancel
Save