mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:35:55 +00:00
consistency: use DiskCache->exists() to check for present files
This commit is contained in:
@@ -101,7 +101,7 @@ class DiskCache {
|
||||
$src = $entry->hasAttribute('poster') ? $entry->getAttribute('poster') : $entry->getAttribute('src');
|
||||
$cached_filename = sha1($src);
|
||||
|
||||
if ($cache->getSize($cached_filename) > 0) {
|
||||
if ($cache->exists($cached_filename)) {
|
||||
|
||||
$src = $cache->getUrl(sha1($src));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user