Skip to content

Commit fb72c06

Browse files
committed
Do the same for edit web
1 parent 45e85f7 commit fb72c06

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

web/add/mail/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
}
9696
}
9797

98-
if (!empty($_SESSION['IMAP_SYSTEM'])) {
98+
if (!empty($_SESSION['IMAP_SYSTEM']) && !empty($_SESSION['WEBMAIL_SYSTEM'])) {
9999
if (empty($_POST['v_webmail'])) {
100100
if (empty($_SESSION['error_msg'])) {
101101
exec (HESTIA_CMD."v-delete-mail-domain-webmail ".$user." ".$v_domain." yes", $output, $return_var);

web/edit/mail/index.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,14 @@
236236
}
237237
}
238238

239-
if (empty($_POST['v_webmail'])) {
240-
if (empty($_SESSION['error_msg'])) {
241-
exec (HESTIA_CMD."v-delete-mail-domain-webmail ".$user." ".$v_domain." yes", $output, $return_var);
242-
check_return_code($return_var,$output);
243-
$v_webmail = "";
244-
unset($output);
239+
if (!empty($_SESSION['IMAP_SYSTEM']) && !empty($_SESSION['WEBMAIL_SYSTEM'])) {
240+
if (empty($_POST['v_webmail'])) {
241+
if (empty($_SESSION['error_msg'])) {
242+
exec (HESTIA_CMD."v-delete-mail-domain-webmail ".$user." ".$v_domain." yes", $output, $return_var);
243+
check_return_code($return_var,$output);
244+
$v_webmail = "";
245+
unset($output);
246+
}
245247
}
246248
}
247249

0 commit comments

Comments
 (0)