From ee574a9e332bb0468865cfd4d2cf202fb4c4bc3e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 27 Dec 2013 12:02:35 -0200 Subject: Fix a bug introduced in commit 06b8d43c that breaks return_gateways_array() called with $disabled == false --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/gwlb.inc') diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 55a2027..8a9fe85 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -388,7 +388,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive $wancfg = $config['interfaces'][$gateway['interface']]; /* skip disabled interfaces */ - if ($disabled === false && (!isset($wancfg['enable']) || !isset($gateway['disabled']))) + if ($disabled === false && (!isset($wancfg['enable']) || isset($gateway['disabled']))) continue; /* if the gateway is dynamic and we can find the IPv4, Great! */ -- cgit v1.1