move check for latest_update one abstraction layer up

This commit is contained in:
Marc Michalsky forumZFD 2020-10-13 09:04:53 +02:00
parent 0a2166ed1b
commit 8cb0a48009
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 8 additions and 8 deletions

View file

@ -152,6 +152,14 @@ class TwingleApiCall {
];
}
// Set latest_update
$values['last_update'] = $values['last_update'] > $project_options['last_update']
? $values['last_update']
: $project_options['last_update'];
// Delete $options['last_update']
unset($project_options['last_update']);
// Instantiate TwingleProject
try {
$project = new TwingleProject(