From 44f98850449e57c67832540f4516a8999488a0cb Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Tue, 26 Sep 2006 05:09:48 +0000 Subject: [PATCH] sql_concat(): fixed param order thinko -- and now it works too! --- lib/dmllib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 90392278107..b4acf182e36 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1248,9 +1248,9 @@ function sql_fullname($firstname='firstname', $lastname='lastname') { */ function sql_concat() { global $db; - + $args = func_get_args(); - return call_user_func_array(array('Concat', $db), $args); + return call_user_func_array(array($db, 'Concat'), $args); } /** @@ -1275,7 +1275,7 @@ function sql_concat_join($separator="' '", $elements=array()) { for ($n=count($elem)-1; $n > 0 ; $n--) { array_splice($elem, $n, 0, $separator); } - return call_user_func_array(array('Concat', $db), $elem); + return call_user_func_array(array($db, 'Concat'), $elem); } /**