Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #177 from doctrine/1.0-conn-ctor
Browse files Browse the repository at this point in the history
Respect $options when $server is null in Connection constructor
  • Loading branch information
jmikola committed Apr 21, 2014
2 parents 1c38a46 + 74cc098 commit 7874c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/MongoDB/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct($server = null, array $options = array(), Configurat
{
if ($server instanceof \MongoClient || $server instanceof \Mongo) {
$this->mongo = $server;
} elseif ($server !== null) {
} else {
$this->server = $server;
$this->options = $options;
}
Expand Down

0 comments on commit 7874c71

Please sign in to comment.