Commit 07ec29d7 authored by Franco Fichtner's avatar Franco Fichtner

firewall: fix aliases crash report

This page has been reworked on master so this is a tiny cherry-pick
to bridge the gap to 15.7.1x when we merge it in.
parent cf01e5fe
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
if (!is_array($config['aliases'])) { if (!isset($config['aliases'])) {
$config['aliases'] = array(); $config['aliases'] = array();
} }
if (!is_array($config['aliases']['alias'])) { if (!isset($config['aliases']['alias'])) {
$config['aliases']['alias'] = array(); $config['aliases']['alias'] = array();
} }
$a_aliases = &$config['aliases']['alias']; $a_aliases = &$config['aliases']['alias'];
......
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