summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2018-09-10 15:00:56 -0400
committerRenato Botelho <renato@netgate.com>2018-09-17 13:53:10 -0300
commit382fa81d0f3689aca0e10371b028ef03a65d4166 (patch)
treef86d52ac6b2d9c618f1f3bd8ff1a3b43582e8eb6
parent9ed4813c570a64ad5f1e3c32d88736527659ce57 (diff)
downloadpfsense-382fa81d0f3689aca0e10371b028ef03a65d4166.zip
pfsense-382fa81d0f3689aca0e10371b028ef03a65d4166.tar.gz
Fixed #8880
-rw-r--r--src/etc/inc/gwlb.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index 8e4581a..c9b4cd1 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -588,6 +588,10 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
/* Process/add all the configured gateways. */
if (is_array($config['gateways']) && is_array($config['gateways']['gateway_item'])) {
foreach ($config['gateways']['gateway_item'] as $gateway) {
+ if (!is_array($gateway) || empty($gateway)) {
+ continue;
+ }
+
/* Increment it here to do not skip items */
$i++;
if (isset($gateway['defaultgw'])) {
OpenPOWER on IntegriCloud