Fix for listing mailboxes and aliases from multiple domains (#3996)

master
gjerek 2021-02-21 19:08:09 +01:00 committed by GitHub
parent b5bc766c53
commit 3c7995df7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -845,7 +845,7 @@ if (isset($_GET['query'])) {
$domains = mailbox('get', 'domains'); $domains = mailbox('get', 'domains');
} }
else { else {
$domains = array($extra); $domains = explode(',', $extra);
} }
if (!empty($domains)) { if (!empty($domains)) {
foreach ($domains as $domain) { foreach ($domains as $domain) {
@ -1189,7 +1189,7 @@ if (isset($_GET['query'])) {
$domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')); $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
} }
else { else {
$domains = array($extra); $domains = explode(',', $extra);
} }
if (!empty($domains)) { if (!empty($domains)) {
foreach ($domains as $domain) { foreach ($domains as $domain) {