trim Twingle api key
This commit is contained in:
parent
38d4db8a3f
commit
e460d923f8
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ function civicrm_api3_twingle_sync_Post(array $params) {
|
|||
// If function call provides an API key, use it instead of the API key set
|
||||
// on the extension settings page
|
||||
$apiKey = empty($params['twingle_api_key'])
|
||||
? CRM_Core_BAO_Setting::getItem('', 'twingle_api_key')
|
||||
: $params['twingle_api_key'];
|
||||
? trim(Civi::settings()->get('twingle_api_key'))
|
||||
: trim($params['twingle_api_key']);
|
||||
// If function call does not provide a limit, set a default value
|
||||
$limit = empty($params['limit']) ?? 20;
|
||||
$twingleApi = new TwingleApiCall($apiKey, $limit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue