mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
php7.1 filter.inc https://github.com/opnsense/core/issues/1733
This commit is contained in:
parent
cd4b958840
commit
b7f61727cd
@ -143,7 +143,7 @@ function update_alias_names_upon_change($section, $field, $new_alias_name, $orig
|
||||
global $config;
|
||||
if (!empty($origname) && !empty($new_alias_name)) {
|
||||
// find section, return if not found
|
||||
$sectionref = &$config;
|
||||
$sectionref = &config_read_array();
|
||||
foreach ($section as $sectionname) {
|
||||
if (!empty($sectionref[$sectionname]) && is_array($sectionref[$sectionname])) {
|
||||
$sectionref = &$sectionref[$sectionname];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user