diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 1c91a4e36..dbe3a7514 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -418,6 +418,7 @@ function get_nameservers($interface = null, $with_gateway = false) $gwkey = "dns{$dnscounter}gw"; $gateway = null; + $dnsif = null; if (!empty($syscfg[$gwkey]) && $syscfg[$gwkey] != 'none') { /* if a gateway is attached figure out the interface and address */