0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

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
This commit is contained in:
David Goodwin 2008-09-04 12:47:02 +00:00
parent 6bff38ac45
commit 45b2df237c

View File

@ -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'])
{