mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
- fixed undefined item in mysqli
This commit is contained in:
@@ -95,10 +95,16 @@ class DibiMySqliDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
if (!isset($config['username'])) $config['username'] = ini_get('mysqli.default_user');
|
||||
if (!isset($config['password'])) $config['password'] = ini_get('mysqli.default_pw');
|
||||
if (!isset($config['socket'])) $config['socket'] = ini_get('mysqli.default_socket');
|
||||
if (!isset($config['port'])) $config['port'] = NULL;
|
||||
if (!isset($config['host'])) {
|
||||
$config['host'] = ini_get('mysqli.default_host');
|
||||
if (!isset($config['port'])) $config['port'] = ini_get('mysqli.default_port');
|
||||
if (!isset($config['host'])) $config['host'] = 'localhost';
|
||||
$host = ini_get('mysqli.default_host');
|
||||
if ($host) {
|
||||
$config['host'] = $host;
|
||||
$config['port'] = ini_get('mysqli.default_port');
|
||||
} else {
|
||||
$config['host'] = NULL;
|
||||
$config['port'] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
$this->connection = mysqli_init();
|
||||
|
Reference in New Issue
Block a user