diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index c5cf0df81..1ea188f42 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -563,13 +563,13 @@ function do_maintenance_all_tables() function pwg_db_concat($array) { - $string = implode($array, ','); + $string = implode(',', $array); return 'CONCAT('. $string.')'; } function pwg_db_concat_ws($array, $separator) { - $string = implode($array, ','); + $string = implode(',', $array); return 'CONCAT_WS(\''.$separator.'\','. $string.')'; } diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php index ed2e8d738..6474d0bab 100644 --- a/include/dblayer/functions_mysqli.inc.php +++ b/include/dblayer/functions_mysqli.inc.php @@ -679,13 +679,13 @@ function do_maintenance_all_tables() function pwg_db_concat($array) { - $string = implode($array, ','); + $string = implode(',', $array); return 'CONCAT('. $string.')'; } function pwg_db_concat_ws($array, $separator) { - $string = implode($array, ','); + $string = implode(',', $array); return 'CONCAT_WS(\''.$separator.'\','. $string.')'; }