From 8200787f7a77b0846b1861f015b840717c538a7e Mon Sep 17 00:00:00 2001 From: batrick Date: Mon, 8 Feb 2010 02:48:07 +0000 Subject: [PATCH] Fixed wrong variable names that were interpreted as globals. --- nselib/mongodb.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/mongodb.lua b/nselib/mongodb.lua index ae1fa57fc..90477f381 100644 --- a/nselib/mongodb.lua +++ b/nselib/mongodb.lua @@ -100,7 +100,7 @@ function toBson(dict) if dict._id then local status,res = _element_to_bson("_id", dict._id) if not status then return false, res end - element = element..res + elements = elements..res end --Concatenate binary values for key, value in pairs( dict ) do @@ -409,7 +409,7 @@ local function createQuery(collectionName, query) local status, error = packet:addBSON(query) if not status then - return statuts, error + return status, error end return true, packet:data()