summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-11-19 10:46:03 +0100
committersmos <seth.mos@dds.nl>2012-11-19 10:46:03 +0100
commite0ba24f781242e856916e302076599500c7d21db (patch)
tree9d81e8089c4b8f4d552a5a6b19d6ad305730f0f9
parent081507eb21c7e554cc9c2c835a4b0fec02eacec3 (diff)
downloadpfsense-e0ba24f781242e856916e302076599500c7d21db.zip
pfsense-e0ba24f781242e856916e302076599500c7d21db.tar.gz
Switch to is_array() check and add curly
-rw-r--r--etc/inc/gwlb.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 15e070a..22c6bff 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -743,7 +743,7 @@ function return_gateway_groups_array() {
$backupplan[$tier][] = $gwname;
/* check if the gateway is available before adding it to the array */
- if (!empty($gateways_status[$gwname])) {
+ if (is_array($gateways_status[$gwname])) {
$status = $gateways_status[$gwname];
$gwdown = false;
if (stristr($status['status'], "down")) {
@@ -762,9 +762,10 @@ function return_gateway_groups_array() {
log_error($msg);
notify_via_growl($msg);
notify_via_smtp($msg);
- } else
+ } else {
/* Online add member */
$tiers[$tier][] = $gwname;
+ }
} else if (isset($gateways_arr[$gwname]['monitor_disable']))
$tiers[$tier][] = $gwname;
}
OpenPOWER on IntegriCloud