rename "state" to "status" in response array

This commit is contained in:
Marc Michalsky forumZFD 2020-10-07 15:06:56 +02:00
parent 953adaf319
commit a9d9dd5ace
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 9 additions and 9 deletions

View file

@ -145,7 +145,7 @@ class TwingleApiCall {
// If the CiviCRM TwingleProject campaign was changed, update the project
// on Twingle's side
elseif (
$result['state'] == 'TwingleProject exists' &&
$result['status'] == 'TwingleProject exists' &&
$values['last_update'] < $project->lastUpdate()
) {
// If this is a test do not make database changes
@ -158,7 +158,7 @@ class TwingleApiCall {
$result = $this->updateProject($project);
}
}
elseif ($result['state'] == 'TwingleProject exists') {
elseif ($result['status'] == 'TwingleProject exists') {
$result = $project->getResponse('TwingleProject up to date');
}