summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-28 00:52:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-28 00:52:23 +0000
commit65c2df02ab9767fd6633ec43146723655589b1fb (patch)
treef8b37cc984c6655aa482819d160d88e9bee66679 /etc/inc
parentb2f2e120f92aaf646ec88284e9bb184a7547c92c (diff)
downloadpfsense-65c2df02ab9767fd6633ec43146723655589b1fb.zip
pfsense-65c2df02ab9767fd6633ec43146723655589b1fb.tar.gz
Only set $havedns = true if $ns is set
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/system.inc5
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;
+ }
}
}
OpenPOWER on IntegriCloud