summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorThomas Koenig <thomas.k@illustree.at>2007-04-23 17:52:20 +0200
committerThomas Koenig <thomas.k@illustree.at>2007-04-23 17:52:20 +0200
commit6911933b895b7cc5e78a7f3e4c65dcd09060a99a (patch)
tree130535b067120452c6fc2ed6561b4461a22a682b /inc/auth
parent90f99567851007c1b66514527d4e3a065e0f07eb (diff)
downloadrpg-6911933b895b7cc5e78a7f3e4c65dcd09060a99a.tar.gz
rpg-6911933b895b7cc5e78a7f3e4c65dcd09060a99a.tar.bz2
support for setting the MySQL charset for auth backend
darcs-hash:20070423155220-3f9f2-62892a6a0d4f170e24a86d385f2c4a1e1f7d25fa.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/mysql.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php
index 86a5fefa2..05ef828ce 100644
--- a/inc/auth/mysql.class.php
+++ b/inc/auth/mysql.class.php
@@ -718,6 +718,9 @@ class auth_mysql extends auth_basic {
$this->dbsub = $result[3];
}
$this->dbcon = $con;
+ if(!empty($this->cnf['charset'])){
+ mysql_query('SET CHARACTER SET "' . $this->cnf['charset'] . '"', $con);
+ }
return true; // connection and database successfully opened
} else {
mysql_close ($con);