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 6a98f08 commit b12a9c8Copy full SHA for b12a9c8
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