From 3082bfbefb552610b67660b5dfce7845474477ae Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione <18699708+giuscris@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:46:11 +0200 Subject: [PATCH] Fix `Updater` failure when there are no updates --- formwork/src/Updater/Updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formwork/src/Updater/Updater.php b/formwork/src/Updater/Updater.php index 7fcb2fc3..04fa5257 100644 --- a/formwork/src/Updater/Updater.php +++ b/formwork/src/Updater/Updater.php @@ -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'); }