summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 17:56:47 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 17:56:47 +0300
commit41fc03287e889d4dc7ac60a93832b79065c041cb (patch)
tree8dc463ed8fa28ccbd762cab0088b5151b89dbb7e /classes/counters.php
parentc94f1b6ff8a2a82fa0d6ad725144c5380fd0df7b (diff)
fix even more warnings reported by phpstan
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/counters.php b/classes/counters.php
index be634c52a..59605df18 100644
--- a/classes/counters.php
+++ b/classes/counters.php
@@ -120,7 +120,8 @@ class Counters {
$has_img = false;
}
- if (date('Y') - date('Y', strtotime($line['last_updated'])) > 2)
+ // hide default un-updated timestamp i.e. 1980-01-01 (?) -fox
+ if ((int)date('Y') - (int)date('Y', strtotime($line['last_updated'])) > 2)
$last_updated = '';
$cv = [