1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

fix even more warnings reported by phpstan

This commit is contained in:
Andrew Dolgov
2021-02-06 17:56:47 +03:00
parent c94f1b6ff8
commit 41fc03287e
4 changed files with 11 additions and 17 deletions

View File

@@ -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 = [