Fix PHP warning when _sql_where() is callend with NULL as an argument
This commit is contained in:
parent
512cd3552e
commit
5ab9dda048
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue