Skip to content

Commit

Permalink
Cleanup from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Jun 20, 2016
1 parent eff80d9 commit 3df2cdd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ public function init()

// We copy this function to add the subdocument validator as a built in validator
CValidator::$builtInValidators['subdocument'] = 'sammaye\mongoyii\validators\SubdocumentValidator';



parent::init();
}

Expand All @@ -176,7 +173,9 @@ public function init()
* @throws \sammaye\mongoyii\Exception
*/
public function connect() {
if($this->connectFlag) return ;
if($this->connectFlag){
return ;
}
$this->client = new DriverClient($this->uri, $this->options, $this->driverOptions);
$this->connectFlag = true;
if(!is_array($this->db)){
Expand Down

0 comments on commit 3df2cdd

Please sign in to comment.