summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorfox <[email protected]>2022-10-01 12:28:15 +0300
committerfox <[email protected]>2022-10-01 12:28:15 +0300
commit0ac143a29b45e35faf7b636e26d4aa854d95602a (patch)
tree8b28a34faaac9fd848dad7503db8d6c191f894f6 /classes/counters.php
parent42bc1620b8deda73b96b2e0029c6de79daa5ccca (diff)
parent560caf837768a39d7e13f067f9221347ad348774 (diff)
Merge pull request 'Fix PHP8 strtime warning if argument is null (addendum)' (#86) from mechnich/tt-rss:more-strtotime-fixes into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/86
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/counters.php b/classes/counters.php
index bc4d2d4a3..9699cb97c 100644
--- a/classes/counters.php
+++ b/classes/counters.php
@@ -193,7 +193,7 @@ class Counters {
}
// hide default un-updated timestamp i.e. 1970-01-01 (?) -fox
- if ((int)date('Y') - (int)date('Y', strtotime($line['last_updated'])) > 2)
+ if ((int)date('Y') - (int)date('Y', strtotime($line['last_updated'] ?? '')) > 2)
$last_updated = '';
$cv = [