Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Sammaye/MongoYii.git
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Dec 3, 2013
2 parents 4cac20e + c16f123 commit 45a0c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ public function search($query = array(), $project = array(), $partialMatch=false

$value = $this->{$attribute};
if ($value !== null && $value !== ''){
if((is_array($value) && count($value)) || is_object($value)){
if((is_array($value) && count($value)) || is_object($value) || is_bool($value)){
$query[$attribute] = $value;
}elseif(preg_match('/^(?:\s*(<>|<=|>=|<|>|=))?(.*)$/', $value, $matches)) {
$value = $matches[2];
Expand Down

0 comments on commit 45a0c00

Please sign in to comment.