diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php index 6899aa5c..f721b389 100644 --- a/plugins/cache_starred_images/init.php +++ b/plugins/cache_starred_images/init.php @@ -21,7 +21,9 @@ class Cache_Starred_Images extends Plugin { } if (is_dir($this->cache_dir)) { - chmod($this->cache_dir, 0777); + + if (!is_writable($this->cache_dir)) + chmod($this->cache_dir, 0777); if (is_writable($this->cache_dir)) { $host->add_hook($host::HOOK_UPDATE_TASK, $this);