- fix: unlimited is 0, not -1

- remove debugging code


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@124 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent 4cdd5569cc
commit b0cd475b04

@ -138,20 +138,17 @@ if (isset ($limit)) {
if($active == 't' || $active == 1) {
$backup_mx = $limit['backupmx'];
if($backup_mx == 'f' || $backup_mx == 0) {
if($limit['aliases'] == -1) {
if($limit['aliases'] == 0) {
$tCanAddAlias = true;
}
elseif($limit['alias_count'] < $limit['aliases']) {
$tCanAddAlias = true;
echo 'xxx2';
}
if($limit['mailboxes'] == -1) {
if($limit['mailboxes'] == 0) {
$tCanAddMailbox = true;
echo 'xxx3';
}
elseif($limit['mailbox_count'] < $limit['mailboxes']) {
$tCanAddMailbox = true;
echo 'xxx4';
}
}
}

Loading…
Cancel
Save