Skip to content

Commit 144f674

Browse files
fix: loosen type checking when sorting nat rules
1 parent bf23701 commit 144f674

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
@@ -345,7 +345,7 @@ function sort_nat_rules($top=false, $data=null, $field=null) {
345345

346346
foreach ($acl as $idx => $fre) {
347347
# Check if top mode is enabled, if so add this item to the start of the array
348-
if ($top === true and $idx === $data) {
348+
if ($top == true and $idx === $data) {
349349
array_unshift($sort_arr, $fre);
350350
} else {
351351
$sort_arr[] = $fre;

0 commit comments

Comments
 (0)