From c58677987b22d0aecacff32cd07054ef3912e369 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Dec 2011 13:18:16 +0400 Subject: [PATCH] only try to cache images when cache dir is writable --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 821d6b175..4cb81cd06 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) {