Commit 1a234964 authored by Ad Schellevis's avatar Ad Schellevis

style fixes util.inc

parent 431757f9
...@@ -632,7 +632,7 @@ function get_configured_carp_interface_list($carpinterface = "", $family = "inet ...@@ -632,7 +632,7 @@ function get_configured_carp_interface_list($carpinterface = "", $family = "inet
$iflist = array(); $iflist = array();
if(is_array($config['virtualip']['vip'])) { if(isset($config['virtualip']['vip']) && is_array($config['virtualip']['vip'])) {
$viparr = &$config['virtualip']['vip']; $viparr = &$config['virtualip']['vip'];
foreach ($viparr as $vip) { foreach ($viparr as $vip) {
switch ($vip['mode']) { switch ($vip['mode']) {
...@@ -661,7 +661,7 @@ function get_configured_ip_aliases_list($returnfullentry = false) { ...@@ -661,7 +661,7 @@ function get_configured_ip_aliases_list($returnfullentry = false) {
$alias_list=array(); $alias_list=array();
if(is_array($config['virtualip']['vip'])) { if(isset($config['virtualip']['vip']) && is_array($config['virtualip']['vip'])) {
$viparr = &$config['virtualip']['vip']; $viparr = &$config['virtualip']['vip'];
foreach ($viparr as $vip) { foreach ($viparr as $vip) {
if ($vip['mode']=="ipalias") { if ($vip['mode']=="ipalias") {
......
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