diff options
Diffstat (limited to '')
-rw-r--r-- | include/dblayer/functions_sqlite.inc.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/dblayer/functions_sqlite.inc.php b/include/dblayer/functions_sqlite.inc.php index 7a33b09a2..7e21e128c 100644 --- a/include/dblayer/functions_sqlite.inc.php +++ b/include/dblayer/functions_sqlite.inc.php @@ -425,9 +425,7 @@ function pwg_db_concat($array) function pwg_db_concat_ws($array, $separator) { - $glue = sprintf(' || \'%s\' || ', $separator); - - return implode($array, $glue); + return implode($array, ' || \''.$separator.'\' || '); } function pwg_db_cast_to_text($string) |