diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-21 14:55:12 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-21 14:55:12 -0500 |
commit | 28e592d50d5eb43ab91197c9997b06da103ea924 (patch) | |
tree | b8ae39b6c715ec7b2bca76346b95e433d5143794 /db/query.h | |
parent | a1309b7c345c41d93bf8a942b240ff325c96235f (diff) | |
download | mongo-28e592d50d5eb43ab91197c9997b06da103ea924.tar.gz |
make query more flexible for php arrays
Diffstat (limited to 'db/query.h')
-rw-r--r-- | db/query.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/query.h b/db/query.h index bdd15142ec2..d59f97544fd 100644 --- a/db/query.h +++ b/db/query.h @@ -215,10 +215,10 @@ namespace mongo { BSONElement e = q["query"]; - if ( e.type() != Object ) + if ( ! e.isABSONObj() ) e = q["$query"]; - if ( e.type() == Object ){ + if ( e.isABSONObj() ){ _filter = e.embeddedObject(); _initTop( q ); } |