plugins/libkolab
Aleksander Machniak
machniak at kolabsys.com
Thu Aug 9 14:32:50 CEST 2012
plugins/libkolab/lib/kolab_storage_folder.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4c02e93f18cec71e82703137db60defab7fa960c
Author: Aleksander Machniak <alec at alec.pl>
Date: Thu Aug 9 14:32:09 2012 +0200
Prepare query also in count() to fix error when object is given as SQL query parameter
diff --git a/plugins/libkolab/lib/kolab_storage_folder.php b/plugins/libkolab/lib/kolab_storage_folder.php
index 69cd31b..e0f0deb 100644
--- a/plugins/libkolab/lib/kolab_storage_folder.php
+++ b/plugins/libkolab/lib/kolab_storage_folder.php
@@ -282,7 +282,7 @@ class kolab_storage_folder
else if (is_string($type_or_query))
$query = array(array('type','=',$type_or_query));
else
- $query = (array)$type_or_query;
+ $query = $this->_prepare_query((array)$type_or_query);
// synchronize cache first
$this->cache->synchronize();
More information about the commits
mailing list