From 596a3abac6ca9bfea5ca0aeee60b4f2ba6524f6e Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 3 Dec 2009 13:30:20 +0100 Subject: [PATCH] Prevent bootup code from dying on empty load_balancer arrays --- etc/inc/vslb.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 86616c787c..ef35c2bb06 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -191,7 +191,9 @@ function relayd_configure() { break; } } - $check_a[$type['name']] = $mon->p(); + if($mon) { + $check_a[$type['name']] = $mon->p(); + } }