From 3413e5825583178e5df0c3535a8f5e734727edfc Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 15 Aug 2021 09:27:39 +1000 Subject: [PATCH] [REF] Fix e-notice in APIv3 Profile Test on PHP8 Remove e-notice issue found by dave d --- api/v3/Profile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/Profile.php b/api/v3/Profile.php index eb78e51e0dfe..742af495fad6 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -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]; }