mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Gateways, empty gateway_group tag in config.xml being parsed in getGroups() results. fix a bit of spacing while here. closes https://github.com/opnsense/core/issues/3576
This commit is contained in:
parent
dd02e21231
commit
5dca5cc723
@ -389,11 +389,11 @@ class Gateways
|
||||
*/
|
||||
public function getGroups($status_info)
|
||||
{
|
||||
$all_gateways = $this->gatewaysIndexedByName();
|
||||
$result = array();
|
||||
$all_gateways = $this->gatewaysIndexedByName();
|
||||
$result = array();
|
||||
if (isset($this->configHandle->gateways)) {
|
||||
foreach ($this->configHandle->gateways->children() as $tag => $gw_group) {
|
||||
if ($tag == "gateway_group") {
|
||||
if ($tag == "gateway_group" && !empty($gw_group)) {
|
||||
$tiers = array();
|
||||
if (isset($gw_group->item)) {
|
||||
foreach ($gw_group->item as $item) {
|
||||
@ -453,7 +453,7 @@ class Gateways
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user