Merge pull request #256 from tobiastom/patch-1

When phpci is default, it should be used.
This commit is contained in:
Steve B 2014-01-27 03:36:33 -08:00
commit 14da1ab5a5

View file

@ -101,8 +101,8 @@ if ($installOK && strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') {
* Create database:
*/
$dbhost = $config['b8']['database']['servers']['write'][0];
$dbname = $config['b8']['database']['name'];
$dbuser = $config['b8']['database']['username'];
$dbname = $config['b8']['database']['name'] ?: 'phpci';
$dbuser = $config['b8']['database']['username'] ?: 'phpci';
$dbpass = $config['b8']['database']['password'];
$pdo = new PDO('mysql:host=' . $dbhost, $dbuser, $dbpass);