aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_pdo-sqlite.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dblayer/functions_pdo-sqlite.inc.php')
-rw-r--r--include/dblayer/functions_pdo-sqlite.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/dblayer/functions_pdo-sqlite.inc.php b/include/dblayer/functions_pdo-sqlite.inc.php
index 2f1727e75..ea47564f0 100644
--- a/include/dblayer/functions_pdo-sqlite.inc.php
+++ b/include/dblayer/functions_pdo-sqlite.inc.php
@@ -413,9 +413,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)