Commit 068a0af2 authored by Oleg Khimich's avatar Oleg Khimich

bugfix: improper database configuration values used

parent e1e95a50
......@@ -190,7 +190,7 @@ class Connection extends BaseConnection
}
// Check if we want to authenticate against a specific database.
$auth_database = isset($config['options']) && !empty($config['options']['database']) ? $config['options']['database'] : null;
$auth_database = isset($config['database']) && !empty($config['database']) ? $config['database'] : null;
return 'mongodb://' . implode(',', $hosts) . ($auth_database ? '/' . $auth_database : '');
}
......
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