From: martinlanghoff Date: Tue, 26 Sep 2006 05:09:48 +0000 (+0000) Subject: sql_concat(): fixed param order thinko -- and now it works too! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=44f98850449e57c67832540f4516a8999488a0cb;p=moodle.git sql_concat(): fixed param order thinko -- and now it works too! --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 9039227810..b4acf182e3 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); } /**