Skip to content

Commit e3ba478

Browse files
committed
Show notification if file not found.
1 parent 09094a6 commit e3ba478

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Update/UpdateChecker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ private function shouldShowNotification()
174174
{
175175
try {
176176
$last_notification = $this->getDataStore()->get(self::LAST_NOTIFICATION_FILE);
177+
if (empty($last_notification->time)) {
178+
// If we have no time, show the notification
179+
return true;
180+
}
177181
$current_time = time();
178182
return ($current_time - $last_notification->time) > self::NOTIFICATION_FREQUENCY;
179183
} catch (TerminusNotFoundException $e) {

0 commit comments

Comments
 (0)