Merge branch 'avoid-array_key_exists-on-null' into 'main'

Avoid `array_key_exists()` on `NULL`

See merge request Marc_Michalsky/de-forumzfd-twinglecampaign!4
This commit is contained in:
Marc_Michalsky 2024-06-15 09:25:59 +00:00
commit 93c1ab649d

View file

@ -129,11 +129,7 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
} }
} }
} }
elseif (array_key_exists( elseif (!empty($apiRequest['params']['custom_fields']['event'])) {
'event',
$apiRequest['params']['custom_fields']) &&
!empty($apiRequest['params']['custom_fields']['event'])
) {
try { try {
$targetCampaign = civicrm_api3( $targetCampaign = civicrm_api3(
'TwingleEvent', 'TwingleEvent',