File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/opnsense/mvc/app/library/OPNsense/Routing Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -389,11 +389,11 @@ public function getInterfaceGateway($interface, $ipproto = "inet")
389
389
*/
390
390
public function getGroups ($ status_info )
391
391
{
392
- $ all_gateways = $ this ->gatewaysIndexedByName ();
393
- $ result = array ();
392
+ $ all_gateways = $ this ->gatewaysIndexedByName ();
393
+ $ result = array ();
394
394
if (isset ($ this ->configHandle ->gateways )) {
395
395
foreach ($ this ->configHandle ->gateways ->children () as $ tag => $ gw_group ) {
396
- if ($ tag == "gateway_group " ) {
396
+ if ($ tag == "gateway_group " && ! empty ( $ gw_group ) ) {
397
397
$ tiers = array ();
398
398
if (isset ($ gw_group ->item )) {
399
399
foreach ($ gw_group ->item as $ item ) {
@@ -453,7 +453,7 @@ public function getGroups($status_info)
453
453
}
454
454
}
455
455
}
456
- return $ result ;
456
+ return $ result ;
457
457
}
458
458
459
459
/**
You can’t perform that action at this time.
0 commit comments