Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Thu Jun 26 10:01:51 CEST 2014


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

New commits:
commit 133d738af2f93886b6a2a6f25365aee82fc667fe
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Thu Jun 26 10:01:27 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 24602a4..df92a6e 100644
--- a/plugins/libkolab/lib/kolab_storage_folder.php
+++ b/plugins/libkolab/lib/kolab_storage_folder.php
@@ -82,7 +82,9 @@ class kolab_storage_folder
         list($this->type, $suffix) = explode('.', $this->type_annotation);
         $this->default      = $suffix == 'default';
         $this->name         = $name;
-        $this->resource_uri = null;
+
+        // 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)




More information about the commits mailing list