From ce489a724b59091ccb1faec0a0f569b380018042 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Feb 2021 10:23:45 +0300 Subject: [PATCH] fix a few more warnings --- classes/rssutils.php | 4 ++-- plugins/af_unburn/init.php | 1 - 2 files changed, 2 insertions(+), 3 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 = ''; diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index d867e83be..4d0c56740 100755 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -69,7 +69,6 @@ class Af_Unburn extends Plugin { $real_url = preg_replace("/\?$/", "", $real_url); - $article["plugin_data"] = "unburn,$owner_uid:" . $article["plugin_data"]; $article["link"] = $real_url; } }