git-svn-id: file:///svn/phpbb/trunk@6442 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-10-05 00:55:27 +00:00
parent dcdd47cb75
commit 9c83c919a2

View file

@ -47,13 +47,10 @@ class dbal_mysqli extends dbal
$this->db_connect_id = @mysqli_connect($this->server, $this->user, $sqlpassword, $this->dbname, $port); $this->db_connect_id = @mysqli_connect($this->server, $this->user, $sqlpassword, $this->dbname, $port);
if ($this->db_connect_id && $this->dbname != '') if ($this->db_connect_id && $this->dbname != '')
{
if (@mysqli_select_db($this->db_connect_id, $this->dbname))
{ {
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8'"); @mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");
return $this->db_connect_id; return $this->db_connect_id;
} }
}
return $this->sql_error(''); return $this->sql_error('');
} }