diff options
author | Phil Davis <phil.davis@inf.org> | 2014-11-17 16:54:27 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-11-17 16:54:27 +0545 |
commit | a0e387a50a313d7402185a978d8df88f11bf23e6 (patch) | |
tree | b782b617ae7973976ae7b634132fa07cbcc1d61d /etc/inc/unbound.inc | |
parent | 984abd663d30f71a76aa1ae72c1e0832b564d11e (diff) | |
download | pfsense-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/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 2 |
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); |