From 24e256da52b230a193e93b71b8aafc9bb98b3032 Mon Sep 17 00:00:00 2001 From: Trond Schertel Date: Tue, 11 Feb 2020 12:09:09 +0100 Subject: [PATCH] Fixes #1155 --- include/dblayer/functions_mysql.inc.php | 4 ++-- include/dblayer/functions_mysqli.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.')'; }