gunnar: server/php-kolab/Kolab_Freebusy/Freebusy Cache.php,1.2,1.3

cvs at kolab.org cvs at kolab.org
Fri Nov 30 17:10:19 CET 2007


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy
In directory doto:/tmp/cvs-serv6099/Kolab_Freebusy/Freebusy

Modified Files:
	Cache.php 
Log Message:
Fix the loading of free/busy list so that we do not fetch the list of the caller but of the requested owner.

Index: Cache.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy/Cache.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Cache.php	23 Nov 2007 13:39:32 -0000	1.2
+++ Cache.php	30 Nov 2007 16:10:17 -0000	1.3
@@ -165,13 +165,9 @@
 
         /* Which files will we access? */
         $aclcache = &FreeBusyCacheDB_acl::singleton('acl', $this->_cache_dir);
-        $files = array();
-        foreach ($access->groups as $id) {
-            $add = $aclcache->get($id);
-            if (is_a($add, 'PEAR_Error')) {
-                return $add;
-            }
-            $files = array_unique(array_merge($files, $add));
+        $files = $aclcache->get($access->owner);
+        if (is_a($files, 'PEAR_Error')) {
+            return $files;
         }
         $filesnames = array();
 





More information about the commits mailing list