Commit 25542eb9 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1049 Cache store ressource correctly.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 6326b756
......@@ -257,7 +257,7 @@ class Kopano extends SyncWorker {
$companies = mapi_zarafa_getcompanylist($this->store);
if (is_array($companies)) {
foreach($companies as $c) {
$names[$c['companyname']] = bin2hex($c['companyid']);
$names[trim($c['companyname'])] = bin2hex($c['companyid']);
}
}
return $names;
......@@ -636,7 +636,8 @@ class Kopano extends SyncWorker {
* @return ressource
*/
private function getRootFolder($store) {
$rootId = "root";
// stringify the store ressource
$rootId = bin2hex($store."!");
if (!isset($this->folderCache[$rootId])) {
$parentfentryid = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment