From e894e97f495597584aea2f86e78767910b5f71e6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 5 Nov 2011 14:55:08 +0400 Subject: [PATCH] fetch_feed_favicon: do not generate warning when icon file is not writable (refs #375) --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index ae73298ef..4c4f76876 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);