From a0e387a50a313d7402185a978d8df88f11bf23e6 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 17 Nov 2014 16:54:27 +0545 Subject: Improve test in unbound_add_domain_overrides Actually the test condition happened to work OK! But this change makes it easier to understand what is really intended. --- etc/inc/unbound.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/unbound.inc') diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 3e53698..2305592 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -470,7 +470,7 @@ function unbound_add_domain_overrides($pvt_rev="") { } } - if ($pvt_rev == true) + if ($pvt_rev != "") return $domain_entries; else file_put_contents("{$g['unbound_chroot_path']}/domainoverrides.conf", $domain_entries); -- cgit v1.1