diff --git a/cake/libs/model/datasources/dbo/dbo_mysqli.php b/cake/libs/model/datasources/dbo/dbo_mysqli.php index f4c923299..0882c2738 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysqli.php +++ b/cake/libs/model/datasources/dbo/dbo_mysqli.php @@ -89,12 +89,7 @@ class DboMysqli extends DboSource { */ function connect() { $config = $this->config; - $this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], null, $config['port']); - - if (mysqli_select_db($this->connection, $config['database'])) { - $this->connected = true; - } - + $this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], $config['database'], $config['port']); return $this->connected; } /**