[Web] Fix blank screen in admin.php

This commit is contained in:
andryyy 2021-08-08 17:06:41 +02:00
parent eff3e388c5
commit 7e958c9b26
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -971,11 +971,13 @@ if (!isset($_SESSION['gal']) && $license_cache = $redis->Get('LICENSE_STATUS_CAC
<div class="col-sm-8">
<select data-width="100%" name="exclude_domains" class="selectpicker" title="<?=$lang['tfa']['select'];?>" multiple>
<?php
foreach (array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')) as $domain):
?>
<option <?=(in_array($domain, $q_data['exclude_domains'])) ? 'selected' : null;?>><?=htmlspecialchars($domain);?></option>
<?php
endforeach;
if (is_array($q_data['exclude_domains'])) {
foreach (array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')) as $domain) {
?>
<option <?=(in_array($domain, $q_data['exclude_domains'])) ? 'selected' : null;?>><?=htmlspecialchars($domain);?></option>
<?php
}
}
?>
</select>
</div>