Update json_api.php

master
André Peters 2019-11-09 09:59:07 +01:00 committed by GitHub
parent cf1e633b1a
commit d28e0f2be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -601,11 +601,11 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
case "mailbox":
switch ($object) {
case "all":
if(empty($extra)) {
if (empty($extra)) {
$domains = mailbox('get', 'domains');
}
else {
$domains = [ $extra ];
$domains = array($extra);
}
if (!empty($domains)) {
foreach ($domains as $domain) {
@ -945,11 +945,11 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
case "alias":
switch ($object) {
case "all":
if(empty($extra)) {
if (empty($extra)) {
$domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
}
else {
$domains = [ $extra ];
$domains = array($extra);
}
if (!empty($domains)) {
foreach ($domains as $domain) {