mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
Fix Updater
failure when there are no updates
This commit is contained in:
parent
0245e8ae0e
commit
3082bfbefb
@ -98,7 +98,7 @@ class Updater
|
||||
*/
|
||||
public function checkUpdates(): bool
|
||||
{
|
||||
if (time() - $this->registry->get('lastCheck') < $this->options['time']) {
|
||||
if ($this->registry->has('lastCheck') && time() - $this->registry->get('lastCheck') < $this->options['time']) {
|
||||
return $this->registry->get('upToDate');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user