3Z4LPN - fix syntax error arrow function php < 7.4

This commit is contained in:
sas.fajri
2026-06-24 15:11:48 +07:00
parent 53af31c741
commit af27cbe4cb

View File

@@ -615,7 +615,7 @@ class Px extends MY_Controller
$child_nat_groups[] = isset($nat_group_map[$child_id]) ? $nat_group_map[$child_id] : 0;
}
$all_stemcell = !in_array(false, array_map(fn($g) => $g == 7, $child_nat_groups), true);
$all_stemcell = !in_array(false, array_map(function($g) { return $g == 7; }, $child_nat_groups), true);
$any_stemcell = in_array(7, $child_nat_groups);
if ($is_stemcell == 'Y' && !$all_stemcell) continue;