alecpl
2010-10-07 9db4ca92efc620fa5d38f53557e75e9a8e345047
- Support one argument of type array, instead of n arguments for rcube_mdb2::query method


1 files modified
4 ■■■■ changed files
program/include/rcube_mdb2.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_mdb2.php
@@ -199,6 +199,10 @@
        $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);
    }