Commit 3f20b7e4 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) crashreport PHP Warning: Illegal string offset 'acls' in...

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

(cherry picked from commit e76fec29)
parent c27b1211
......@@ -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'];
......
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