summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 10:23:45 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 10:23:45 +0300
commitce489a724b59091ccb1faec0a0f569b380018042 (patch)
treed50a51dd9af746d7e6f84e8540a7239289fce16e /classes
parent10392ecc285871b3f0866370bea11c18693d6a2c (diff)
fix a few more warnings
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/rssutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 4040450d5..8a1ab6bbc 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -591,12 +591,12 @@ class RSSUtils {
* the icon avgcolor again (unless the icon got updated) */
$favicon_file = ICONS_DIR . "/$feed.ico";
- $favicon_modified = @filemtime($favicon_file);
+ $favicon_modified = file_exists($favicon_file) ? filemtime($favicon_file) : -1;
Debug::log("checking favicon...", Debug::$LOG_VERBOSE);
self::check_feed_favicon($site_url, $feed);
- $favicon_modified_new = @filemtime($favicon_file);
+ $favicon_modified_new = file_exists($favicon_file) ? filemtime($favicon_file) : -1;
if ($favicon_modified_new > $favicon_modified)
$favicon_avg_color = '';