mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unbreak filter_get_direct_networks()
Check if the array is empty
This commit is contained in:
parent
340de029b3
commit
da82a94a7d
@ -490,8 +490,9 @@ function filter_get_direct_networks_list() {
|
||||
/* build list of directly connected interfaces and networks */
|
||||
$networks = "";
|
||||
$networks_arr = array();
|
||||
if (!isset($FilterIflist))
|
||||
if (empty($FilterIflist)) {
|
||||
filter_generate_optcfg_array();
|
||||
}
|
||||
foreach ($FilterIflist as $ifent => $ifcfg) {
|
||||
if(is_subnet($ifcfg['sa'])) {
|
||||
$networks_arr[] = $subnet;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user