Commit f8730eed authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix some uninitilized attributes

parent 71b9c356
...@@ -2000,7 +2000,7 @@ function interface_proxyarp_configure($interface = '') ...@@ -2000,7 +2000,7 @@ function interface_proxyarp_configure($interface = '')
if (!empty($interface) && $interface != $proxyif) if (!empty($interface) && $interface != $proxyif)
continue; continue;
if (!is_array($paa[$proxyif])) if (!isset($paa[$proxyif]) || !is_array($paa[$proxyif]))
$paa[$proxyif] = array(); $paa[$proxyif] = array();
$paa[$proxyif][] = $vipent; $paa[$proxyif][] = $vipent;
...@@ -2009,7 +2009,7 @@ function interface_proxyarp_configure($interface = '') ...@@ -2009,7 +2009,7 @@ function interface_proxyarp_configure($interface = '')
} }
if (!empty($interface)) { if (!empty($interface)) {
if (is_array($paa[$interface])) { if (isset($paa[$interface]) && is_array($paa[$interface])) {
$paaifip = get_interface_ip($interface); $paaifip = get_interface_ip($interface);
if (!is_ipaddr($paaifip)) if (!is_ipaddr($paaifip))
return; return;
......
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