From 20623f576e8189e3db230dbbe4a4a7e7b1be3282 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 28 Oct 2013 10:35:28 -0200 Subject: Fix an attempt to read unset variable $rtent --- etc/inc/services.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'etc/inc/services.inc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 856d0b3..0a89302 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1368,8 +1368,7 @@ function services_dhcrelay_configure() { if (is_array($config['gateways']['gateway_item'])) { foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { - $a_gateways = return_gateways_array(true); - $destif = $a_gateways[$rtent['gateway']]['interface']; + $destif = $gateway['interface']; break; } } @@ -1487,8 +1486,7 @@ function services_dhcrelay6_configure() { if (is_array($config['gateways']['gateway_item'])) { foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { - $a_gateways = return_gateways_array(true); - $destif = $a_gateways[$rtent['gateway']]['interface']; + $destif = $gateway['interface']; break; } } -- cgit v1.1