diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 3164f473..8da40386 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -2603,7 +2603,7 @@ function mailbox_add_alias($postarray) { $address = $local_part.'@'.$domain; $domaindata = mailbox_get_domain_details($domain); - if (is_array($domaindata) && ['aliases_left'] == 0) { + if (is_array($domaindata) && $domaindata['aliases_left'] == "0") { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => sprintf($lang['danger']['max_alias_exceeded'])