]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Cron.php
'SearchDirectory' created (moved out of 'DiscoverPoco' mess)
[friendica.git] / src / Worker / Cron.php
index 0db70f5a8dddc801b86eafe9a6451979ce92eeeb..e43fde28efdf6ccf6453e2922e869c79b567e401 100644 (file)
@@ -104,7 +104,7 @@ class Cron
                // Ensure to have a .htaccess file.
                // this is a precaution for systems that update automatically
                $basepath = $a->getBasePath();
-               if (!file_exists($basepath . '/.htaccess')) {
+               if (!file_exists($basepath . '/.htaccess') && is_writable($basepath)) {
                        copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
                }