Removing wonky and most likely incorrect manipulation of socket and port

setting mangling in DboMysqli.  Fixes #1478
This commit is contained in:
mark_story 2011-01-24 22:05:16 -05:00
parent 7032729651
commit 32f0b20a33

View file

@ -59,13 +59,6 @@ class DboMysqli extends DboMysqlBase {
$config = $this->config;
$this->connected = false;
if (is_numeric($config['port'])) {
$config['socket'] = null;
} else {
$config['socket'] = $config['port'];
$config['port'] = null;
}
$this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], $config['database'], $config['port'], $config['socket']);
if ($this->connection !== false) {