summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index e0d6dfb..abac423 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -63,10 +63,9 @@ 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