[Web] Fix BCC toggling active when changing the type, thanks for @feldsam

master
andryyy 2021-07-24 19:05:06 +02:00
parent f6ca438cf4
commit 773383cacd
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?php
function bcc($_action, $_data = null, $attr = null) {
function bcc($_action, $_data = null, $_attr = null) {
global $pdo;
global $lang;
if ($_SESSION['mailcow_cc_role'] != "admin" && $_SESSION['mailcow_cc_role'] != "domainadmin") {
@ -135,7 +135,6 @@ function bcc($_action, $_data = null, $attr = null) {
);
continue;
}
$active = intval($_data['active']);
if (!filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
$_SESSION['return'][] = array(
'type' => 'danger',