From 386864cd2612ac743e182253541bddfebed80606 Mon Sep 17 00:00:00 2001 From: nikrou Date: Thu, 28 Jan 2010 11:30:36 +0000 Subject: Feature 511 : add support for sqlite database engine Using session_write_close function when session handler use database because write is called after object destruction. git-svn-id: http://piwigo.org/svn/trunk@4781 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_mysql.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/dblayer/functions_mysql.inc.php') diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index cc5ca3081..80c172a36 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -458,9 +458,10 @@ function do_maintenance_all_tables() } } -function pwg_db_concat_ws($string, $separaor) +function pwg_db_concat_ws($array, $separator) { - return 'CONCAT_WS(\''.$separaor.'\','. $string.')'; + $string = implode($array, ','); + return 'CONCAT_WS(\''.$separator.'\','. $string.')'; } function pwg_db_cast_to_text($string) -- cgit v1.2.3