Skip to content

Commit 7dc6868

Browse files
committed
Use unequal operator for if statement
1 parent d6f2cad commit 7dc6868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/plugins/system_config_dns_ca_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function web_vhost_domain_edit($event_name, $page_form) {
6969

7070
$global_config = $app->getconf->get_global_config('sites');
7171

72-
if(($page_form->dataRecord['ssl_letsencrypt'] == 'y') && ($global_config['le_caa_autocreate_options'] == 'y')) {
72+
if(($page_form->dataRecord['ssl_letsencrypt'] == 'y') && ($global_config['le_caa_autocreate_options'] != 'n')) {
7373
$domain = $page_form->dataRecord['domain'];
7474
$subdomain = $page_form->dataRecord['subdomain'];
7575
$temp=$app->db->queryAllRecords("SELECT * FROM dns_rr WHERE type = 'CAA' AND (name = ? OR name = ?) AND data like ?", $domain.'.', $subdomain.'.'.$domain.'.', '%letsencrypt%');

0 commit comments

Comments
 (0)