mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: fix a PHP warning and make a comment about floating rules
This commit is contained in:
parent
896ade7698
commit
9cb123ce7f
@ -172,7 +172,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
if (isset($config['filter']['rule'])) {
|
||||
foreach ($config['filter']['rule'] as $x => $rule) {
|
||||
if ($rule['interface'] == $id) {
|
||||
/* XXX this doesn't match floating rules with multiple values */
|
||||
if (isset($rule['interface']) && $rule['interface'] == $id) {
|
||||
unset($config['filter']['rule'][$x]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user