mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 23:54:08 +01:00
* [MOD] Improved layouts/templates handling. Work in progress.
* [MOD] Improved bootstrap workflow. Work in progress. * [MOD] Improved installer workflow. Work in progress.
This commit is contained in:
@@ -125,7 +125,7 @@ class MySQLHandler implements DBStorageInterface
|
||||
*/
|
||||
public function getConnectionUri()
|
||||
{
|
||||
if ('' === $this->connectionData->getDbSocket()) {
|
||||
if (empty($this->connectionData->getDbSocket())) {
|
||||
$dsn = 'mysql:host=' . $this->connectionData->getDbHost();
|
||||
|
||||
if (null !== $this->connectionData->getDbPort()) {
|
||||
@@ -135,14 +135,13 @@ class MySQLHandler implements DBStorageInterface
|
||||
if (null !== $this->connectionData->getDbName()) {
|
||||
$dsn .= ';dbname=' . $this->connectionData->getDbName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $dsn . ';charset=utf8';
|
||||
}
|
||||
|
||||
$dsn = 'mysql:unix_socket=' . $this->connectionData->getDbSocket();
|
||||
|
||||
if ('' !== $this->connectionData->getDbName()) {
|
||||
if (!empty($this->connectionData->getDbName())) {
|
||||
$dsn .= ';dbname=' . $this->connectionData->getDbName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user