diff options
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 3aaf3bd70..3376a9e00 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -199,6 +199,10 @@ class rcube_mdb2 $params = func_get_args(); $query = array_shift($params); + // Support one argument of type array, instead of n arguments + if (count($params) == 1 && is_array($params[0])) + $params = $params[0]; + return $this->_query($query, 0, 0, $params); } |