1
0
Fork 0

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

View file

@ -2361,7 +2361,9 @@ function get_itemcachepath() {
if ($temppath != "") {
$itemcache = $temppath."/itemcache";
if(!file_exists($itemcache) && !is_dir($itemcache)) {
mkdir($itemcache);
}
if (is_dir($itemcache) AND is_writable($itemcache)) {
set_config("system", "itemcache", $itemcache);