diff options
author | nikrou <nikrou@piwigo.org> | 2010-02-03 09:26:32 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-02-03 09:26:32 +0000 |
commit | e1de0d6fafb4e22e90f9277b9f60baa8943e1228 (patch) | |
tree | 32806a8f2cadd8ab7c67c9d0c4118b6f0a0eddd4 /include/dblayer/functions_mysql.inc.php | |
parent | 7fda6e5af949b66378055571377048af430df0fd (diff) |
Feature 511 : fix problems with calendar functions
add pwg_db_concat() function
git-svn-id: http://piwigo.org/svn/trunk@4833 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/dblayer/functions_mysql.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index 80c172a36..6a29a0e40 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -458,6 +458,12 @@ function do_maintenance_all_tables() } } +function pwg_db_concat($array) +{ + $string = implode($array, ','); + return 'CONCAT('. $string.')'; +} + function pwg_db_concat_ws($array, $separator) { $string = implode($array, ','); |