(legacy) crashreport PHP Warning: Illegal string offset 'acls' in /usr/local/www/services_unbound_acls.php on line 59

This commit is contained in:
Ad Schellevis 2015-12-27 16:10:35 +01:00
parent 6713d12157
commit e76fec2903

View File

@ -56,7 +56,7 @@ function unbound_get_next_id() {
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound_acls.php');
if (!is_array($config['unbound']['acls']))
if (empty($config['unbound']['acls']) || !is_array($config['unbound']['acls']))
$config['unbound']['acls'] = array();
$a_acls = &$config['unbound']['acls'];