diff --git a/phpgwapi/inc/class.http_dav_client.inc.php b/phpgwapi/inc/class.http_dav_client.inc.php index 9d768828ef..3363a7e595 100644 --- a/phpgwapi/inc/class.http_dav_client.inc.php +++ b/phpgwapi/inc/class.http_dav_client.inc.php @@ -693,7 +693,14 @@ if (DEBUG_CACHE) $this->debug($newitem); $newitem['name'] = $this->decodeurl($newitem['name']); $result[$fixed_name]=$newitem; - $this->cached_props[$name.'//1//1'] = array($fixed_name=>$newitem); + if ($newitem['is_dir']==1) + { + $this->cached_props[$name.'//0//1'] = array($fixed_name=>$newitem); + } + else + { + $this->cached_props[$name.'//1//1'] = array($fixed_name=>$newitem); + } } if ($sorted) {