summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-07 07:03:25 +0000
committeralecpl <alec@alec.pl>2010-10-07 07:03:25 +0000
commit9db4ca92efc620fa5d38f53557e75e9a8e345047 (patch)
tree0f0f5cc83de9b15d22ab42aab2aa40087b6bd706 /program/include
parent1b9142154036ed348ffe2fdcbe1022f8d9014c7f (diff)
- Support one argument of type array, instead of n arguments for rcube_mdb2::query method
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_mdb2.php4
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);
}