We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d6aa1 commit 45e85f7Copy full SHA for 45e85f7
web/add/mail/index.php
@@ -95,11 +95,13 @@
95
}
96
97
98
- if (empty($_POST['v_webmail'])) {
99
- if (empty($_SESSION['error_msg'])) {
100
- exec (HESTIA_CMD."v-delete-mail-domain-webmail ".$user." ".$v_domain." yes", $output, $return_var);
101
- check_return_code($return_var,$output);
102
- unset($output);
+ if (!empty($_SESSION['IMAP_SYSTEM'])) {
+ if (empty($_POST['v_webmail'])) {
+ if (empty($_SESSION['error_msg'])) {
+ exec (HESTIA_CMD."v-delete-mail-domain-webmail ".$user." ".$v_domain." yes", $output, $return_var);
+ check_return_code($return_var,$output);
103
+ unset($output);
104
+ }
105
106
107
0 commit comments