From: Andrew Dolgov Date: Sat, 5 Nov 2011 10:55:08 +0000 (+0400) Subject: fetch_feed_favicon: do not generate warning when icon file is not X-Git-Tag: 1.5.7~50 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e894e97f495597584aea2f86e78767910b5f71e6;p=tt-rss.git fetch_feed_favicon: do not generate warning when icon file is not writable (refs #375) --- diff --git a/functions.php b/functions.php index ae73298e..4c4f7687 100644 --- a/functions.php +++ b/functions.php @@ -476,7 +476,7 @@ $contents = fetch_file_contents($favicon_url, "image"); if ($contents) { - $fp = fopen($icon_file, "w"); + $fp = @fopen($icon_file, "w"); if ($fp) { fwrite($fp, $contents);