Branch 'dev/kolab-cache-refactoring-3.1' - plugins/libkolab
Aleksander Machniak
machniak at kolabsys.com
Mon Oct 14 15:05:29 CEST 2013
plugins/libkolab/lib/kolab_storage_cache.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5ab9dda0484450e61794311a6f10b772930e46a3
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Mon Oct 14 15:04:00 2013 +0200
Fix PHP warning when _sql_where() is callend with NULL as an argument
diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php
index a0e8915..a4fd34c 100644
--- a/plugins/libkolab/lib/kolab_storage_cache.php
+++ b/plugins/libkolab/lib/kolab_storage_cache.php
@@ -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) {
More information about the commits
mailing list