lib/kolab_sync_backend_content.php
Aleksander Machniak
machniak at kolabsys.com
Wed Apr 10 16:34:04 CEST 2013
lib/kolab_sync_backend_content.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 98d6d0ec8caadd95cebf9781350cb3aeb16cb054
Author: Aleksander Machniak <alec at alec.pl>
Date: Wed Apr 10 16:33:12 2013 +0200
Fix typos from last commit which break getFolderState()
diff --git a/lib/kolab_sync_backend_content.php b/lib/kolab_sync_backend_content.php
index 246dcba..84702e6 100644
--- a/lib/kolab_sync_backend_content.php
+++ b/lib/kolab_sync_backend_content.php
@@ -92,8 +92,8 @@ class kolab_sync_backend_content extends kolab_sync_backend_common implements Sy
// in Sync request we call this function twice in case when
// folder state changed - use cache to skip at least one SELECT query
- if (isset($this->cache['content_folderstate'][$cache_key])) {
- return $this->cache['content_folderstate'][$cache_key];
+ if (isset($this->cache['content_folderstate'][$cachekey])) {
+ return $this->cache['content_folderstate'][$cachekey];
}
$where[] = $this->db->quote_identifier('device_id') . ' = ' . $this->db->quote($deviceId);
@@ -107,7 +107,7 @@ class kolab_sync_backend_content extends kolab_sync_backend_common implements Sy
$result[] = $state['contentid'];
}
- return $this->cache['content_folderstate'][$cache_key] = $result;
+ return $this->cache['content_folderstate'][$cachekey] = $result;
}
/**
More information about the commits
mailing list