Commit d85c2cc1 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix check element in filter.inc

parent 55710649
...@@ -895,7 +895,7 @@ function filter_generate_optcfg_array() ...@@ -895,7 +895,7 @@ function filter_generate_optcfg_array()
if (!empty($vips)) { if (!empty($vips)) {
foreach ($vips as $vipidx => $vip) { foreach ($vips as $vipidx => $vip) {
if (is_ipaddrv4($vip['subnet'])) { if (is_ipaddrv4($vip['subnet'])) {
if (!is_array($oic['vips'])) if (!isset($oic['vips']))
$oic['vips'] = array(); $oic['vips'] = array();
$oic['vips'][$vipidx]['ip'] = $vip['subnet']; $oic['vips'][$vipidx]['ip'] = $vip['subnet'];
if (empty($vip['subnet_bits'])) if (empty($vip['subnet_bits']))
......
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