mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 21:51:29 +00:00
fetch_feed_favicon: do not generate warning when icon file is not
writable (refs #375)
This commit is contained in:
@@ -476,7 +476,7 @@
|
|||||||
$contents = fetch_file_contents($favicon_url, "image");
|
$contents = fetch_file_contents($favicon_url, "image");
|
||||||
|
|
||||||
if ($contents) {
|
if ($contents) {
|
||||||
$fp = fopen($icon_file, "w");
|
$fp = @fopen($icon_file, "w");
|
||||||
|
|
||||||
if ($fp) {
|
if ($fp) {
|
||||||
fwrite($fp, $contents);
|
fwrite($fp, $contents);
|
||||||
|
|||||||
Reference in New Issue
Block a user