diff --git a/src/www/firewall_rules.php b/src/www/firewall_rules.php index 8b21a0bcf..90d535710 100644 --- a/src/www/firewall_rules.php +++ b/src/www/firewall_rules.php @@ -94,7 +94,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { // move selected rules if (!isset($id)) { // if rule not set/found, move to end - $id = count($a_nat); + $id = count($a_filter); } $a_filter = legacy_move_config_list_items($a_filter, $id, $pconfig['rule']); if (write_config()) {