We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046ca88 commit f1c7bafCopy full SHA for f1c7baf
web/add/web/index.php
@@ -18,8 +18,8 @@
18
// Check for empty fields
19
if (empty($_POST['v_domain'])) $errors[] = __('domain');
20
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');
+ 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');
23
if (!empty($errors[0])) {
24
foreach ($errors as $i => $error) {
25
if ( $i == 0 ) {
0 commit comments