summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/vslb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index c31c5d2..bd19244 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -73,7 +73,7 @@ function slbd_configure() {
$svrtxt = "";
$svrtxt = "\t:service-port={$config['load_balancer']['lbpool'][$i]['port']}:\\\n";
if($config['load_balancer']['lbpool'])
- if(is_array($config['load_balancer']['lbpool']))
+ if(is_array($config['load_balancer']['lbpool'][$i]['servers']))
foreach ($config['load_balancer']['lbpool'][$i]['servers'] as $lbsvr) {
$svrtxt .= "\t:{$svrcnt}={$lbsvr}:\\\n";
$svrcnt++;
OpenPOWER on IntegriCloud