Commit 184b842a authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix a crash report

parent b4acda05
...@@ -33,8 +33,9 @@ require_once("interfaces.inc"); ...@@ -33,8 +33,9 @@ require_once("interfaces.inc");
$pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit"));
$shortcut_section = "interfaces"; $shortcut_section = "interfaces";
if (!is_array($config['ifgroups']['ifgroupentry'])) if (!isset($config['ifgroups']['ifgroupentry']) || !is_array($config['ifgroups']['ifgroupentry'])) {
$config['ifgroups']['ifgroupentry'] = array(); $config['ifgroups']['ifgroupentry'] = array();
}
$a_ifgroups = &$config['ifgroups']['ifgroupentry']; $a_ifgroups = &$config['ifgroups']['ifgroupentry'];
......
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