mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
sql_concat(): fixed param order thinko -- and now it works too!
This commit is contained in:
parent
b4dd303a97
commit
44f9885044
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user