summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-17 16:54:27 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-17 16:54:27 +0545
commita0e387a50a313d7402185a978d8df88f11bf23e6 (patch)
treeb782b617ae7973976ae7b634132fa07cbcc1d61d /etc
parent984abd663d30f71a76aa1ae72c1e0832b564d11e (diff)
downloadpfsense-a0e387a50a313d7402185a978d8df88f11bf23e6.zip
pfsense-a0e387a50a313d7402185a978d8df88f11bf23e6.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud