Skip to content

Commit

Permalink
[REF] Fix e-notice in APIv3 Profile Test on PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Aug 14, 2021
1 parent 867ceba commit d1bbb16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v3/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour,
*/
}
}
$profileFields[$profileID] = is_array($profileFields[$profileID]) ? $profileFields[$profileID] : [];
uasort($profileFields[$profileID], "_civicrm_api3_order_by_weight");
return $profileFields[$profileID];
}
Expand Down

0 comments on commit d1bbb16

Please sign in to comment.