File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 264264 }
265265
266266 // Delete Lets Encrypt support
267- if (( $ v_letsencrypt == 'yes ' ) && (empty ($ _POST ['v_letsencrypt ' ])) && (empty ($ _SESSION ['error_msg ' ]))) {
267+ if (( $ v_letsencrypt == 'yes ' ) && (empty ($ _POST ['v_letsencrypt ' ]) || empty ( $ _POST [ ' v_ssl ' ]) ) && (empty ($ _SESSION ['error_msg ' ]))) {
268268 exec (HESTIA_CMD ."v-delete-letsencrypt-domain " .$ user ." " .escapeshellarg ($ v_domain )." ' ' 'yes' " , $ output , $ return_var );
269269 check_return_code ($ return_var ,$ output );
270270 unset($ output );
Original file line number Diff line number Diff line change 349349 }
350350
351351 // Delete Lets Encrypt support
352- if (( $ v_letsencrypt == 'yes ' ) && (empty ($ _POST ['v_letsencrypt ' ])) && (empty ($ _SESSION ['error_msg ' ]))) {
352+ if (( $ v_letsencrypt == 'yes ' ) && (empty ($ _POST ['v_letsencrypt ' ]) || empty ( $ _POST [ ' v_ssl ' ]) ) && (empty ($ _SESSION ['error_msg ' ]))) {
353353 exec (HESTIA_CMD ."v-delete-letsencrypt-domain " .$ user ." " .escapeshellarg ($ v_domain )." '' " , $ output , $ return_var );
354354 check_return_code ($ return_var ,$ output );
355355 unset($ output );
You can’t perform that action at this time.
0 commit comments