diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-28 00:52:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-28 00:52:23 +0000 |
commit | 65c2df02ab9767fd6633ec43146723655589b1fb (patch) | |
tree | f8b37cc984c6655aa482819d160d88e9bee66679 /etc | |
parent | b2f2e120f92aaf646ec88284e9bb184a7547c92c (diff) | |
download | pfsense-65c2df02ab9767fd6633ec43146723655589b1fb.zip pfsense-65c2df02ab9767fd6633ec43146723655589b1fb.tar.gz |
Only set $havedns = true if $ns is set
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index abac423..e0d6dfb 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -63,9 +63,10 @@ function system_resolvconf_generate($dynupdate = false) { } if (!$havedns && is_array($syscfg['dnsserver'])) { foreach ($syscfg['dnsserver'] as $ns) { - if ($ns) + if ($ns) { $resolvconf .= "nameserver $ns\n"; - $havedns = true; + $havedns = true; + } } } |