Merge pull request #1455 from pztrn/master

Do not attempt to create itemcache directory if it already exist.
This commit is contained in:
Tobias Diekershoff 2015-03-29 16:05:57 +02:00
commit 58ac6bde09
1 changed files with 3 additions and 1 deletions

View File

@ -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);