summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-26 13:18:16 +0400
committerAndrew Dolgov <[email protected]>2011-12-26 13:18:16 +0400
commitc58677987b22d0aecacff32cd07054ef3912e369 (patch)
tree5a0bda8be290a8f41b3729131be3b6debd45f999 /include/rssfuncs.php
parent3c696512fcf85331158f26078616e5684f46a68e (diff)
only try to cache images when cache dir is writable
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
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) {