mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
[Web] Fix BCC toggling active when changing the type, thanks for @feldsam
This commit is contained in:
parent
f6ca438cf4
commit
773383cacd
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
function bcc($_action, $_data = null, $attr = null) {
|
function bcc($_action, $_data = null, $_attr = null) {
|
||||||
global $pdo;
|
global $pdo;
|
||||||
global $lang;
|
global $lang;
|
||||||
if ($_SESSION['mailcow_cc_role'] != "admin" && $_SESSION['mailcow_cc_role'] != "domainadmin") {
|
if ($_SESSION['mailcow_cc_role'] != "admin" && $_SESSION['mailcow_cc_role'] != "domainadmin") {
|
||||||
@ -135,7 +135,6 @@ function bcc($_action, $_data = null, $attr = null) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$active = intval($_data['active']);
|
|
||||||
if (!filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
|
if (!filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
'type' => 'danger',
|
'type' => 'danger',
|
||||||
|
Loading…
Reference in New Issue
Block a user