change way to give back the TwigleProject response

This commit is contained in:
Marc Michalsky forumZFD 2020-10-01 11:49:32 +02:00
parent 96952b7253
commit ad4f32e2d6
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 23 additions and 12 deletions

View file

@ -121,13 +121,13 @@ class TwingleApiCall {
$project = new TwingleProject($values);
$result = $project->create($is_test);
if (
$result['state'] == 'exists' &&
$result['state'] == 'TwingleProject exists' &&
$values['last_update'] > $project->getTimestamp()
) {
$result = $project->update($is_test);
}
elseif (
$result['state'] == 'exists' &&
$result['state'] == 'TwingleProject exists' &&
$values['last_update'] < $project->getTimestamp()
) {
$result = $this->updateProject($project->export());