aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-08 13:39:09 +0100
committerplegall <plg@piwigo.org>2015-12-08 13:39:09 +0100
commit16f6a54fa719cc79ff942e4bb8139d7ca09ed997 (patch)
tree81126343c8a0ee6e84e8c744688015d1877c605a /include/dblayer/functions_mysql.inc.php
parent5be28962a16ac6a2694d0c0e1c6bff3ef7ec1100 (diff)
fixes #384 use built-in functions to set charset
Diffstat (limited to 'include/dblayer/functions_mysql.inc.php')
-rw-r--r--include/dblayer/functions_mysql.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index a1853b223..9cf25e76f 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -53,7 +53,7 @@ function pwg_db_check_charset()
{
$db_charset = DB_CHARSET;
}
- pwg_query('SET NAMES "'.$db_charset.'"');
+ mysql_set_charset($db_charset);
}
function pwg_db_check_version()