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:
commit
93c1ab649d
1 changed files with 1 additions and 5 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue