From e76fec2903b8ef1bb318c01672735faac3603cdd Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 27 Dec 2015 16:10:35 +0100 Subject: [PATCH] (legacy) crashreport PHP Warning: Illegal string offset 'acls' in /usr/local/www/services_unbound_acls.php on line 59 --- src/www/services_unbound_acls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/services_unbound_acls.php b/src/www/services_unbound_acls.php index 6fca8b86f..e61ea4f98 100644 --- a/src/www/services_unbound_acls.php +++ b/src/www/services_unbound_acls.php @@ -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'];