Skip to content

Commit e3065f8

Browse files
author
Jared Hendrickson
committed
Fixed small bug preventing port forward rules from being sorted
1 parent 099dbc4 commit e3065f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-API/files/etc/inc/api/framework/APITools.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function sort_nat_rules($top=false, $data=null) {
301301
$sort_arr[] = $fre;
302302
}
303303
}
304-
if (!empty($config["nat"]["rule"])) {
304+
if (!empty($sort_arr)) {
305305
$config["nat"]["rule"] = $sort_arr;
306306
} else {
307307
unset($config["nat"]["rule"]);

0 commit comments

Comments
 (0)