Prepare query also in count() to fix error when object is given as SQL query parameter

This commit is contained in:
Aleksander Machniak 2012-08-09 14:32:09 +02:00
parent 0b82e6bac6
commit 4c02e93f18

View file

@ -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();