Commit 31fdebee authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix some isset issues

parent 579021d1
......@@ -32,7 +32,7 @@ require_once("unbound.inc");
function unbound_acl_id_used($id) {
global $config;
if (is_array($config['unbound']['acls']))
if (isset($config['unbound']['acls']))
foreach($config['unbound']['acls'] as & $acls)
if ($id == $acls['aclid'])
return true;
......@@ -79,8 +79,9 @@ if ($act == "new") {
$id = unbound_get_next_id();
}
$networkacl = array();
if ($act == "edit") {
if (isset($id) && $a_acls[$id]) {
if (isset($id) && isset($a_acls[$id])) {
$pconfig = $a_acls[$id];
$networkacl = $a_acls[$id]['row'];
}
......
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