mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
system: fix undefined var edge case
This commit is contained in:
parent
cb510320fa
commit
b2d9eb2e36
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user