Allow adding aliases to alias domains

This commit is contained in:
Michael Kuron 2017-04-16 11:29:58 +02:00 committed by GitHub
parent 9633a34f9f
commit 15805ed2d7
1 changed files with 1 additions and 1 deletions

View File

@ -2678,7 +2678,7 @@ function mailbox_add_alias($postarray) {
$address = $local_part.'@'.$domain;
$domaindata = mailbox_get_domain_details($domain);
if ($domaindata['aliases_left'] == 0) {
if (is_array($domaindata) && $domaindata['aliases_left'] == 0) {
$_SESSION['return'] = array(
'type' => 'danger',
'msg' => sprintf($lang['danger']['max_alias_exceeded'])