We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e95a5 commit 068a0afCopy full SHA for 068a0af
src/Jenssegers/Mongodb/Connection.php
@@ -190,7 +190,7 @@ protected function getHostDsn(array $config)
190
}
191
192
// Check if we want to authenticate against a specific database.
193
- $auth_database = isset($config['options']) && !empty($config['options']['database']) ? $config['options']['database'] : null;
+ $auth_database = isset($config['database']) && !empty($config['database']) ? $config['database'] : null;
194
return 'mongodb://' . implode(',', $hosts) . ($auth_database ? '/' . $auth_database : '');
195
196
0 commit comments