Fix Updater failure when there are no updates

This commit is contained in:
Giuseppe Criscione 2024-04-27 12:46:11 +02:00
parent 0245e8ae0e
commit 3082bfbefb

View File

@ -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');
}