1
0
Fork 0

fixed item 3 of issue #7009 (#7746)

This commit is contained in:
Jan 2018-12-12 11:38:18 +01:00 committed by GitHub
parent afb1d62bd6
commit f43cc15bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -71,10 +71,12 @@ struct NearOrWithinParams{
distanceName = arr->getMember(4);
}
if(isNear){
limit = arr->getMember(3);
} else {
radius = arr->getMember(3);
if (arr->numMembers() > 3) {
if (isNear) {
limit = arr->getMember(3);
} else {
radius = arr->getMember(3);
}
}
}
};