tiny fixes in customer_email

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-15 09:06:02 +01:00
parent 6a9c2b8fdf
commit d25c5ec4dd
2 changed files with 12 additions and 9 deletions

View File

@@ -130,10 +130,7 @@ if ($page == 'overview' || $page == 'emails') {
));
$domains = [];
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
$domains[] = [
'label' => $idna_convert->decode($row['domain']),
'value' => $row['domain']
];
$domains[$row['domain']] = $idna_convert->decode($row['domain']);
}
if (count($domains) > 0) {