Skip to content

Commit

Permalink
Fix for 1.4.1 returning null for getGridFS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Jul 6, 2013
1 parent 9ff11fc commit ffb208d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EMongoClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public function __get($k){
* Will either call a function on the database or call for a collection
*/
public function __call($name,$parameters = array()){
if(method_exists($this->_db, $name)){
return call_user_func_array(array($this->_db, $name), $parameters);
if(method_exists($this->getDB(), $name)){
return call_user_func_array(array($this->getDB(), $name), $parameters);
}
}

Expand Down

0 comments on commit ffb208d

Please sign in to comment.