summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-03-31 18:15:08 +0100
committerJohn McLear <john@mclear.co.uk>2012-03-31 18:15:08 +0100
commit309e3b09942389bd92205fc04d5e73088a30df60 (patch)
tree33a290d1df5745d0701d37fc85ce86adf0f7f3ba
parentcfb58a80a30486156a15515164c9c0f4647f165b (diff)
downloadetherpad-lite-309e3b09942389bd92205fc04d5e73088a30df60.zip
fix pitas fix
-rw-r--r--node/db/PadManager.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/node/db/PadManager.js b/node/db/PadManager.js
index 4e3a3199..5f08b1b1 100644
--- a/node/db/PadManager.js
+++ b/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);
+ }
});
}