File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 283283 unset($ output );
284284 $ v_hostname = $ _POST ["v_hostname " ];
285285 }
286-
287286 if ($ _SESSION ["WEB_BACKEND " ] == "php-fpm " ) {
288287 // Install/remove php versions
289288 if (empty ($ _SESSION ["error_msg " ])) {
290289 if (!empty ($ v_php_versions )) {
291- $ post_php = $ _POST ["v_php_versions " ];
290+ if (!empty ($ _POST ["v_php_versions " ])) {
291+ $ post_php = $ _POST ["v_php_versions " ];
292+ }
292293 if (empty ($ post_php )) {
293294 $ post_php = [];
294295 }
623624
624625 // Update webmail url
625626 if (empty ($ _SESSION ["error_msg " ])) {
626- if ($ _POST ["v_webmail_alias " ] != $ _SESSION ["WEBMAIL_ALIAS " ]) {
627- exec (
628- HESTIA_CMD . "v-change-sys-webmail " . quoteshellarg ($ _POST ["v_webmail_alias " ]),
629- $ output ,
630- $ return_var ,
631- );
632- check_return_code ($ return_var , $ output );
633- unset($ output );
634- $ v_mail_adv = "yes " ;
627+ if ($ _SESSION ["WEBMAIL_SYSTEM " ] != "" ) {
628+ if ($ _POST ["v_webmail_alias " ] != $ _SESSION ["WEBMAIL_ALIAS " ]) {
629+ exec (
630+ HESTIA_CMD . "v-change-sys-webmail " . quoteshellarg ($ _POST ["v_webmail_alias " ]),
631+ $ output ,
632+ $ return_var ,
633+ );
634+ check_return_code ($ return_var , $ output );
635+ unset($ output );
636+ $ v_mail_adv = "yes " ;
637+ }
635638 }
636639 }
637640
You can’t perform that action at this time.
0 commit comments