system: fix undefined var edge case

This commit is contained in:
Franco Fichtner 2023-01-20 10:15:27 +01:00
parent cb510320fa
commit b2d9eb2e36

View File

@ -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 */