From ff3eae22d3415e6040f0da96e20dbeaaa57cea25 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Mar 2003 18:10:15 +0000 Subject: [PATCH] sim's patch #1217: webdav client cache fix --- phpgwapi/inc/class.http_dav_client.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {