From bedacf7b0841489765286f5c61cb6a25c798e8a7 Mon Sep 17 00:00:00 2001 From: nikrou Date: Tue, 22 Jun 2010 21:18:42 +0000 Subject: Bug 1737 fixed : Concatenation error with POstgreSQL Simplify same function for SQLite git-svn-id: http://piwigo.org/svn/trunk@6580 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_pdo-sqlite.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/dblayer/functions_pdo-sqlite.inc.php') 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) -- cgit v1.2.3