From b2d9eb2e36af0e860d2bf495bff902b472196c6a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 20 Jan 2023 10:15:27 +0100 Subject: [PATCH] system: fix undefined var edge case --- src/etc/inc/system.inc | 1 + 1 file changed, 1 insertion(+) 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 */