[Web] List alias addresses whitespace separated

This commit is contained in:
André 2018-06-08 09:13:25 +02:00
parent 6ded3dbd95
commit 07c1a0bcd3

View File

@ -2800,7 +2800,7 @@ function mailbox($_action, $_type, $_data = null, $attr = null) {
return false;
}
try {
$stmt = $pdo->prepare("SELECT `address` FROM `alias` WHERE `address` != `goto` AND `domain` = :domain");
$stmt = $pdo->prepare("SELECT REPLACE(`address`, ',', ' ') AS `address` FROM `alias` WHERE `address` != `goto` AND `domain` = :domain");
$stmt->execute(array(
':domain' => $_data,
));