Skip to content

Commit

Permalink
fix: loosen type checking when sorting nat rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Jun 22, 2023
1 parent bf23701 commit 144f674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfSense-pkg-API/files/etc/inc/api/framework/APITools.inc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function sort_nat_rules($top=false, $data=null, $field=null) {

foreach ($acl as $idx => $fre) {
# Check if top mode is enabled, if so add this item to the start of the array
if ($top === true and $idx === $data) {
if ($top == true and $idx === $data) {
array_unshift($sort_arr, $fre);
} else {
$sort_arr[] = $fre;
Expand Down

0 comments on commit 144f674

Please sign in to comment.