move check for latest_update one abstraction layer up
This commit is contained in:
parent
0a2166ed1b
commit
8cb0a48009
2 changed files with 8 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue