Fixes #225 > Subquery can return multiple rows
parent
f4a0289e71
commit
3ffc20e238
|
@ -4294,7 +4294,7 @@ function mailbox_get_domain_details($domain) {
|
||||||
$domaindata['relay_all_recipients_int'] = $row['relay_all_recipients_int'];
|
$domaindata['relay_all_recipients_int'] = $row['relay_all_recipients_int'];
|
||||||
|
|
||||||
$stmt = $pdo->prepare("SELECT COUNT(*) AS `alias_count` FROM `alias`
|
$stmt = $pdo->prepare("SELECT COUNT(*) AS `alias_count` FROM `alias`
|
||||||
WHERE (`domain`= :domain OR `domain` = (SELECT `alias_domain` FROM `alias_domain` WHERE `target_domain` = :domain2))
|
WHERE (`domain`= :domain OR `domain` IN (SELECT `alias_domain` FROM `alias_domain` WHERE `target_domain` = :domain2))
|
||||||
AND `address` NOT IN (
|
AND `address` NOT IN (
|
||||||
SELECT `username` FROM `mailbox`
|
SELECT `username` FROM `mailbox`
|
||||||
)");
|
)");
|
||||||
|
|
Loading…
Reference in New Issue