Skip to content
Snippets Groups Projects
Unverified Commit c2f9f4ed authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #21143 from seamuslee001/fix_enotice_php8

[REF] Fix e-notice in APIv3 Profile Test on PHP8
parents 43da4257 3413e582
No related branches found
No related tags found
No related merge requests found
......@@ -604,6 +604,7 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour,
*/
}
}
$profileFields[$profileID] = $profileFields[$profileID] ?? [];
uasort($profileFields[$profileID], "_civicrm_api3_order_by_weight");
return $profileFields[$profileID];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment