Permalink
Browse files

Respect $options when $server is null in Connection constructor

  • Loading branch information...
1 parent 1c38a46 commit 74cc098b86418c026fef74dd30f523d36f70ce14 @jmikola jmikola committed Apr 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/MongoDB/Connection.php
View
2 lib/Doctrine/MongoDB/Connection.php
@@ -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;
}

0 comments on commit 74cc098

Please sign in to comment.