Init array before use

(cherry picked from commit a8a0b1321d2a477772aac4d0034d819b61f2c9bf)
This commit is contained in:
jim-p 2019-05-03 09:29:05 -04:00
parent b8d7497859
commit 89c1390a6b

View File

@ -219,6 +219,7 @@ if ($_POST['save']) {
$gentry['ifname'] = "QinQ";
$gentry['members'] = "{$additions}";
$gentry['descr'] = gettext("QinQ VLANs group");
init_config_arr(array('ifgroups', 'ifgroupentry'));
$config['ifgroups']['ifgroupentry'][] = $gentry;
}
}