Fix PHP warning when _sql_where() is callend with NULL as an argument
This commit is contained in:
parent
ee30f6fb83
commit
053a640b87
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ class kolab_storage_cache
|
||||||
protected function _sql_where($query)
|
protected function _sql_where($query)
|
||||||
{
|
{
|
||||||
$sql_where = '';
|
$sql_where = '';
|
||||||
foreach ($query as $param) {
|
foreach ((array) $query as $param) {
|
||||||
if (is_array($param[0])) {
|
if (is_array($param[0])) {
|
||||||
$subq = array();
|
$subq = array();
|
||||||
foreach ($param[0] as $q) {
|
foreach ($param[0] as $q) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue