Feature 1255 : missing quotes in concat function for mysql

git-svn-id: http://piwigo.org/svn/trunk@4929 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou 2010-02-21 17:27:22 +00:00
commit 9daf2aa7b6

View file

@ -461,7 +461,7 @@ function do_maintenance_all_tables()
function pwg_db_concat($array)
{
$string = implode($array, ',');
return 'CONCAT('. $string.')';
return 'CONCAT(\''. $string.'\')';
}
function pwg_db_concat_ws($array, $separator)