Fix PHP warning when _sql_where() is callend with NULL as an argument

This commit is contained in:
Aleksander Machniak 2013-10-14 15:04:00 +02:00
parent ee30f6fb83
commit 053a640b87

View file

@ -494,7 +494,7 @@ class kolab_storage_cache
protected function _sql_where($query)
{
$sql_where = '';
foreach ($query as $param) {
foreach ((array) $query as $param) {
if (is_array($param[0])) {
$subq = array();
foreach ($param[0] as $q) {