mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: PDOConnector ssl_cipher bug fixes #7258
This commit is contained in:
parent
108080e320
commit
1a4a006d09
@ -181,7 +181,7 @@ class PDOConnector extends DBConnector {
|
||||
}
|
||||
|
||||
// use default cipher if not provided
|
||||
$options[PDO::MYSQL_ATTR_SSL_CIPHER] = $parameters['ssl_cipher'] ?: Config::inst()->get('PDOConnector', 'ssl_cipher_default');
|
||||
$options[PDO::MYSQL_ATTR_SSL_CIPHER] = array_key_exists('ssl_cipher', $parameters) ? $parameters['ssl_cipher'] : Config::inst()->get('PDOConnector', 'ssl_cipher_default');
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user