From 6ce82bf086b196acf96c62211809cb61a4b239e5 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Wed, 1 Feb 2012 01:08:09 -0200 Subject: haproxy - fix array check. --- config/haproxy/haproxy_pools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/haproxy') diff --git a/config/haproxy/haproxy_pools.php b/config/haproxy/haproxy_pools.php index c5adc70b..e11fb0c9 100755 --- a/config/haproxy/haproxy_pools.php +++ b/config/haproxy/haproxy_pools.php @@ -124,7 +124,7 @@ include("head.inc"); $textss = ""; $textse = ""; } - if (is_array($pool['ha_servers']['item'])) + if (is_array($pool['ha_servers'])) $count = count($pool['ha_servers']['item']); else $count = 0; -- cgit v1.2.3