We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09094a6 commit e3ba478Copy full SHA for e3ba478
src/Update/UpdateChecker.php
@@ -174,6 +174,10 @@ private function shouldShowNotification()
174
{
175
try {
176
$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
+ }
181
$current_time = time();
182
return ($current_time - $last_notification->time) > self::NOTIFICATION_FREQUENCY;
183
} catch (TerminusNotFoundException $e) {
0 commit comments