Skip to content

Commit f1c7baf

Browse files
committed
*Don't error on empty ssl data if letsencrypt is on
1 parent 046ca88 commit f1c7baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/add/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// Check for empty fields
1919
if (empty($_POST['v_domain'])) $errors[] = __('domain');
2020
if (empty($_POST['v_ip'])) $errors[] = __('ip');
21-
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_crt']))) $errors[] = __('ssl certificate');
22-
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_key']))) $errors[] = __('ssl key');
21+
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_crt']))&& (empty($_POST['v_letsencrypt']))) $errors[] = __('ssl certificate');
22+
if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_key']))&& (empty($_POST['v_letsencrypt']))) $errors[] = __('ssl key');
2323
if (!empty($errors[0])) {
2424
foreach ($errors as $i => $error) {
2525
if ( $i == 0 ) {

0 commit comments

Comments
 (0)