diff options
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r-- | phpBB/includes/db/mssql.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index 037cef81bf..42ddb1a17a 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -35,6 +35,11 @@ class dbal_mssql extends dbal $this->server = $sqlserver . (($port) ? ':' . $port : ''); $this->dbname = $database; + if (ini_get('mssql.charset')) + { + ini_set('mssql.charset', 'UTF-8'); + } + $this->db_connect_id = ($this->persistency) ? @mssql_pconnect($this->server, $this->user, $sqlpassword) : @mssql_connect($this->server, $this->user, $sqlpassword); if ($this->db_connect_id && $this->dbname != '') @@ -46,11 +51,6 @@ class dbal_mssql extends dbal } } - if (ini_get('mssql.charset')) - { - ini_set('mssql.charset', 'UTF-8'); - } - return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error(''); } |