mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
PHP migration 7.2 enforce type array
This commit is contained in:
parent
5fed4bf20f
commit
059d8a712e
@ -55,6 +55,10 @@ if (empty($tab)) {
|
||||
$pgtitle = array(gettext("Firewall"), gettext("Aliases"), gettext("Bulk import"));
|
||||
$pglinks = array("", "firewall_aliases.php?tab=" . $tab, "@self");
|
||||
|
||||
if (!is_array($config['aliases'])) {
|
||||
$config['aliases'] = array();
|
||||
}
|
||||
|
||||
if (!is_array($config['aliases']['alias'])) {
|
||||
$config['aliases']['alias'] = array();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user