]> git.wh0rd.org Git - tt-rss.git/commitdiff
fetch_feed_favicon: do not generate warning when icon file is not
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 5 Nov 2011 10:55:08 +0000 (14:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 5 Nov 2011 10:56:25 +0000 (14:56 +0400)
writable (refs #375)

functions.php

index ae73298eff52fee5ff5fd144c722d35927670bdf..4c4f768769859ab90d52f80ff7c8e4577b5ce019 100644 (file)
                                $contents = fetch_file_contents($favicon_url, "image");
 
                                if ($contents) {
-                                       $fp = fopen($icon_file, "w");
+                                       $fp = @fopen($icon_file, "w");
 
                                        if ($fp) {
                                                fwrite($fp, $contents);