Commit 2d08f304 authored by Franco Fichtner's avatar Franco Fichtner

relayd: fix a crash report

parent 53b03566
......@@ -33,7 +33,7 @@ require_once("services.inc");
require_once("plugins.inc.d/relayd.inc");
require_once("interfaces.inc");
if (!is_array($config['load_balancer']['lbpool'])) {
if (empty($config['load_balancer']['lbpool']) || !is_array($config['load_balancer']['lbpool'])) {
$config['load_balancer']['lbpool'] = array();
}
$a_pool = &$config['load_balancer']['lbpool'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment