plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Thu Jun 26 09:58:59 CEST 2014


 plugins/libkolab/lib/kolab_storage_folder.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 645d06be5e07ded94a56c4c499fb5b677d2d9e7f
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Thu Jun 26 09:58:48 2014 +0200

    Reset cached properties when iterating folders using the same kolab_storage_folder instance

diff --git a/plugins/libkolab/lib/kolab_storage_folder.php b/plugins/libkolab/lib/kolab_storage_folder.php
index db1a761..fe0f0f3 100644
--- a/plugins/libkolab/lib/kolab_storage_folder.php
+++ b/plugins/libkolab/lib/kolab_storage_folder.php
@@ -59,9 +59,11 @@ class kolab_storage_folder extends kolab_storage_folder_api
         list($this->type, $suffix) = explode('.', $this->type_annotation);
         $this->default      = $suffix == 'default';
         $this->name         = $name;
-        $this->resource_uri = null;
         $this->id           = kolab_storage::folder_id($name);
 
+        // reset cached object properties
+        $this->owner = $this->namespace = $this->resource_uri = $this->info = $this->idata = null;
+
         // get a new cache instance of folder type changed
         if (!$this->cache || $type != $oldtype)
             $this->cache = kolab_storage_cache::factory($this);




More information about the commits mailing list