(legacy) cleanups gwlb.inc

This commit is contained in:
Ad Schellevis 2015-07-15 12:45:23 +00:00
parent 1f70bc5914
commit cc4c65c32e

View File

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