From: Andrew Dolgov Date: Mon, 26 Dec 2011 09:18:16 +0000 (+0400) Subject: only try to cache images when cache dir is writable X-Git-Tag: 1.5.9~50 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c58677987b22d0aecacff32cd07054ef3912e369;p=tt-rss.git only try to cache images when cache dir is writable --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 821d6b17..4cb81cd0 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -678,7 +678,7 @@ } } - if ($cache_images) + if ($cache_images && is_writable(CACHE_DIR . '/images')) $entry_content = cache_images($entry_content, $site_url, $debug_enabled); if ($_REQUEST["xdebug"] == 2) {