fix 'undefined index' bugs

This commit is contained in:
Marc Michalsky forumZFD 2021-02-11 15:48:29 +01:00
parent b7fc25291e
commit 215bcc2c77
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 4 additions and 2 deletions

View file

@ -302,7 +302,7 @@ function _updateProjectLocally(array $project_from_twingle,
$twingleApi->getProjectEmbedData($project->getProjectId())
);
// If this is a test, do not make db changes
if ($params['is_test']) {
if (array_key_exists('is_test', $params) && $params['is_test']) {
return civicrm_api3_create_success(
$project->getResponse('TwingleProject ready to update'),
$params,