diff options
author | John McLear <john@mclear.co.uk> | 2012-03-31 18:15:08 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-03-31 18:15:08 +0100 |
commit | 309e3b09942389bd92205fc04d5e73088a30df60 (patch) | |
tree | 33a290d1df5745d0701d37fc85ce86adf0f7f3ba | |
parent | cfb58a80a30486156a15515164c9c0f4647f165b (diff) | |
download | etherpad-lite-309e3b09942389bd92205fc04d5e73088a30df60.zip |
fix pitas fix
-rw-r--r-- | node/db/PadManager.js | 8 |
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); + } }); } |