summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/include/rcube_mdb2.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index 02ed17ac2..691c75de9 100644
--- a/program/include/rcube_mdb2.php
+++ b/program/include/rcube_mdb2.php
@@ -609,6 +609,8 @@ class rcube_mdb2
function concat(/* col1, col2, ... */)
{
$func = '';
+ $args = func_get_args();
+
switch($this->db_provider) {
case 'mysql':
case 'mysqli':
@@ -622,8 +624,8 @@ class rcube_mdb2
default:
$delim = ' || ';
}
-
- return $func . '(' . join($delim, func_get_args()) . ')';
+
+ return $func . '(' . join($delim, $args) . ')';
}