summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2010-05-06 11:13:26 +0200
committerSeth Mos <seth.mos@xs4all.nl>2010-05-06 11:13:26 +0200
commit416ae3d66588fbcda81b1709876ab5646cd09c18 (patch)
tree08e4276b008c33d28c5dc00c5ee3e149acfc9acf /etc
parent92a2ceae1182f47d2a45ce9a98be888bd4cddf67 (diff)
downloadpfsense-416ae3d66588fbcda81b1709876ab5646cd09c18.zip
pfsense-416ae3d66588fbcda81b1709876ab5646cd09c18.tar.gz
Fix the empty array check, a empty load balancer tag has a value of 1, not 0.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index fcecc51..1988ad2 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -1602,7 +1602,7 @@ function upgrade_053_to_054() {
}
// Unset lbpool if we no longer have any server pools
if (count($lbpool_srv_arr) == 0) {
- if(count($config['load_balancer']) == 0) {
+ if(empty($config['load_balancer'])) {
unset($config['load_balancer']);
} else {
unset($config['load_balancer']['lbpool']);
OpenPOWER on IntegriCloud