]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #1455 from pztrn/master
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 29 Mar 2015 14:05:57 +0000 (16:05 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 29 Mar 2015 14:05:57 +0000 (16:05 +0200)
Do not attempt to create itemcache directory if it already exist.

boot.php

index 9db210840fd8cfccd0747e55ee17afd09ff2ef13..c6cfde0071e7de1921839209982a7af2da0d9247 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2361,7 +2361,9 @@ function get_itemcachepath() {
 
        if ($temppath != "") {
                $itemcache = $temppath."/itemcache";
-               mkdir($itemcache);
+               if(!file_exists($itemcache) && !is_dir($itemcache)) {
+                       mkdir($itemcache);
+               }
 
                if (is_dir($itemcache) AND is_writable($itemcache)) {
                        set_config("system", "itemcache", $itemcache);