This commit is contained in:
Ad Schellevis 2015-04-14 08:30:01 +00:00
parent ee7be889ed
commit 687097ab71
2 changed files with 2 additions and 2 deletions

View File

@ -962,7 +962,7 @@ function filter_generate_optcfg_array()
$FilterIflist['openvpn'] = $oic;
}
/* add interface groups */
if(isset($config['ifgroups']['ifgroupentry']) && is_array($config['ifgroups']['ifgroupentry'])) {
if(isset($config['ifgroups']['ifgroupentry'])) {
foreach($config['ifgroups']['ifgroupentry'] as $ifgen) {
$oc = array();
$oc['if'] = $ifgen['ifname'];

View File

@ -4580,7 +4580,7 @@ function link_interface_to_vlans($int, $action = "") {
function link_interface_to_vips($int, $action = "") {
global $config;
if (isset($config['virtualip']['vip']) && is_array($config['virtualip']['vip'])) {
if (isset($config['virtualip']['vip'])) {
$result = array();
foreach ($config['virtualip']['vip'] as $vip) {
if ($int == $vip['interface']) {