Fix db config use

This commit is contained in:
Ruben 2016-09-01 11:40:07 +01:00
parent 33ddfeebbb
commit 2516cfce14

View file

@ -52,8 +52,8 @@ class Application {
$connectionParams = array( $connectionParams = array(
'pdo' => new \PDO( 'pdo' => new \PDO(
$config['db']['dsn'], $config['db']['dsn'],
isSet($config['username']) ? $config['username'] : null, isSet($config['db']['username']) ? $config['db']['username'] : null,
isSet($config['password']) ? $config['password'] : null isSet($config['db']['password']) ? $config['db']['password'] : null
) )
); );