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'];