summaryrefslogtreecommitdiff
path: root/db/query.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-21 14:55:12 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-21 14:55:12 -0500
commit28e592d50d5eb43ab91197c9997b06da103ea924 (patch)
treeb8ae39b6c715ec7b2bca76346b95e433d5143794 /db/query.h
parenta1309b7c345c41d93bf8a942b240ff325c96235f (diff)
downloadmongo-28e592d50d5eb43ab91197c9997b06da103ea924.tar.gz
make query more flexible for php arrays
Diffstat (limited to 'db/query.h')
-rw-r--r--db/query.h4
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 );
}