Commit e7ea00e9 authored by Benjamin Eberlei's avatar Benjamin Eberlei

convert empty values to null in username/password

parent b37ff7e9
...@@ -38,16 +38,16 @@ class TestUtil ...@@ -38,16 +38,16 @@ class TestUtil
$GLOBALS['tmpdb_host'], $GLOBALS['tmpdb_name'], $GLOBALS['tmpdb_port'])) { $GLOBALS['tmpdb_host'], $GLOBALS['tmpdb_name'], $GLOBALS['tmpdb_port'])) {
$realDbParams = array( $realDbParams = array(
'driver' => $GLOBALS['db_type'], 'driver' => $GLOBALS['db_type'],
'user' => $GLOBALS['db_username'], 'user' => $GLOBALS['db_username'] ?: null,
'password' => $GLOBALS['db_password'], 'password' => $GLOBALS['db_password']?: null,
'host' => $GLOBALS['db_host'], 'host' => $GLOBALS['db_host'],
'dbname' => $GLOBALS['db_name'], 'dbname' => $GLOBALS['db_name'],
'port' => $GLOBALS['db_port'] 'port' => $GLOBALS['db_port']
); );
$tmpDbParams = array( $tmpDbParams = array(
'driver' => $GLOBALS['tmpdb_type'], 'driver' => $GLOBALS['tmpdb_type'],
'user' => $GLOBALS['tmpdb_username'], 'user' => $GLOBALS['tmpdb_username']?: null,
'password' => $GLOBALS['tmpdb_password'], 'password' => $GLOBALS['tmpdb_password']?: null,
'host' => $GLOBALS['tmpdb_host'], 'host' => $GLOBALS['tmpdb_host'],
'dbname' => $GLOBALS['tmpdb_name'], 'dbname' => $GLOBALS['tmpdb_name'],
'port' => $GLOBALS['tmpdb_port'] 'port' => $GLOBALS['tmpdb_port']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment