From f1c7bafe7c950d2c9dc8d258a39cd20a846e6bc7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 3 Aug 2016 05:46:36 -0400 Subject: [PATCH] *Don't error on empty ssl data if letsencrypt is on --- web/add/web/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/add/web/index.php b/web/add/web/index.php index 6edcf4a74..1347e0c58 100644 --- a/web/add/web/index.php +++ b/web/add/web/index.php @@ -18,8 +18,8 @@ if (!empty($_POST['ok'])) { // Check for empty fields if (empty($_POST['v_domain'])) $errors[] = __('domain'); if (empty($_POST['v_ip'])) $errors[] = __('ip'); - if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_crt']))) $errors[] = __('ssl certificate'); - if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_key']))) $errors[] = __('ssl key'); + if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_crt']))&& (empty($_POST['v_letsencrypt']))) $errors[] = __('ssl certificate'); + if ((!empty($_POST['v_ssl'])) && (empty($_POST['v_ssl_key']))&& (empty($_POST['v_letsencrypt']))) $errors[] = __('ssl key'); if (!empty($errors[0])) { foreach ($errors as $i => $error) { if ( $i == 0 ) {