Avoid array_key_exists()
on NULL
This commit is contained in:
parent
bcd2b448d2
commit
cbb148b22f
1 changed files with 1 additions and 5 deletions
|
@ -129,11 +129,7 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
|
|||
}
|
||||
}
|
||||
}
|
||||
elseif (array_key_exists(
|
||||
'event',
|
||||
$apiRequest['params']['custom_fields']) &&
|
||||
!empty($apiRequest['params']['custom_fields']['event'])
|
||||
) {
|
||||
elseif (!empty($apiRequest['params']['custom_fields']['event'])) {
|
||||
try {
|
||||
$targetCampaign = civicrm_api3(
|
||||
'TwingleEvent',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue