aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dblayer/functions_mysql.inc.php')
-rw-r--r--include/dblayer/functions_mysql.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index cc5ca3081..80c172a36 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -458,9 +458,10 @@ function do_maintenance_all_tables()
}
}
-function pwg_db_concat_ws($string, $separaor)
+function pwg_db_concat_ws($array, $separator)
{
- return 'CONCAT_WS(\''.$separaor.'\','. $string.')';
+ $string = implode($array, ',');
+ return 'CONCAT_WS(\''.$separator.'\','. $string.')';
}
function pwg_db_cast_to_text($string)