File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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 );
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments