mirror of
https://github.com/opnsense/core.git
synced 2026-02-04 01:19:21 -06:00
Shuffle is_if condition around for clarity
This commit is contained in:
parent
d048419479
commit
94d8a11f28
@ -163,8 +163,8 @@ class FilterController extends FilterBaseController
|
||||
} else {
|
||||
$is_if = array_intersect(explode(',', $record['interface'] ?? ''), $interfaces ?? []);
|
||||
}
|
||||
// ALL interfaces always matches
|
||||
$is_if = $interfaces === null || $is_if || empty($record['interface']);
|
||||
// ALL interfaces or floating always matches
|
||||
$is_if = $is_if || $interfaces === null || empty($record['interface']);
|
||||
|
||||
if ($is_cat && $is_if) {
|
||||
/* translate/convert legacy fields before returning, similar to mvc handling */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user