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
This commit is contained in:
nikrou
2010-06-22 21:18:42 +00:00
parent 5a677f1151
commit bedacf7b08
3 changed files with 4 additions and 10 deletions
+1 -3
View File
@@ -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)