From cc4c65c32e8ea3241230fc126d1cf2da7fb866b1 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 15 Jul 2015 12:45:23 +0000 Subject: [PATCH] (legacy) cleanups gwlb.inc --- src/etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index 9fe484e53..c4c732000 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -931,7 +931,7 @@ function get_interface_gateway($interface, &$dynamic = false) if (isset($config['interfaces'][$interface])) { $gwcfg = $config['interfaces'][$interface]; - if (!empty($gwcfg['gateway']) && isset($config['gateways']['gateway_item']) && is_array($config['gateways']['gateway_item'])) { + if (!empty($gwcfg['gateway']) && isset($config['gateways']['gateway_item'])) { foreach($config['gateways']['gateway_item'] as $gateway) { if(($gateway['name'] == $gwcfg['gateway']) && (is_ipaddrv4($gateway['gateway']))) { $gw = $gateway['gateway'];