summaryrefslogtreecommitdiff
path: root/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-20 06:25:46 +0000
committeralecpl <alec@alec.pl>2011-05-20 06:25:46 +0000
commitd2a64865a7089133345dc9eed63ddab691d43575 (patch)
treec257ed32bd373fc99c8ab5ff79049190d304e7e1 /program/include/rcube_mdb2.php
parent403f0bf771d022964412bb646532c19431710d65 (diff)
- Fix func_get_args() usage for PHP<5.3 (#1487928)
Diffstat (limited to 'program/include/rcube_mdb2.php')
-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) . ')';
}