From bc76913a6dd8a87a4f34649a1bbaa2c28429dd2f Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 31 Mar 2012 18:15:08 +0100 Subject: [PATCH] fix pitas fix --- src/node/db/PadManager.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/node/db/PadManager.js b/src/node/db/PadManager.js index 4e3a31999..5f08b1b1b 100644 --- a/src/node/db/PadManager.js +++ b/src/node/db/PadManager.js @@ -115,7 +115,13 @@ exports.doesPadExists = function(padId, callback) db.get("pad:"+padId, function(err, value) { if(ERR(err, callback)) return; - callback(null, value != null && value.atext); + if(value != null && value.atext){ + callback(null, true); + } + else + { + callback(null, false); + } }); }