Skip to content

Commit

Permalink
Addition to last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Dec 10, 2013
1 parent b61b592 commit cf6125b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function getRelated($name,$refresh=false,$params=array())

// Form the where clause
$where = $params;
if(isset($relation['where'])) $where = array_merge($relation['where'], $params);
if(isset($relation['where'])&&!$params) $where = array_merge($relation['where'], $params);

// Find out what the pk is and what kind of condition I should apply to it
if (is_array($pk)) {
Expand Down

0 comments on commit cf6125b

Please sign in to comment.