Skip to content
Browse files

sql_concat(): fixed param order thinko -- and now it works too!

  • Loading branch information...
1 parent b4dd303 commit 44f98850449e57c67832540f4516a8999488a0cb martinlanghoff committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/dmllib.php
View
6 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);
}
/**

0 comments on commit 44f9885

Please sign in to comment.
Something went wrong with that request. Please try again.