diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-02-27 14:13:47 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-02-27 14:13:47 +0100 |
commit | 973aad5c96e5731ad6891f0d507b630d76c63c1b (patch) | |
tree | df7e2055d1f83ed1e8bfb2ac89b25b1f6392eb9b | |
parent | da2b456b5b4402752e3f17c59428b2b801bb424e (diff) | |
download | etherpad-lite-973aad5c96e5731ad6891f0d507b630d76c63c1b.zip |
Fix doesPadExist check
-rw-r--r-- | node/db/PadManager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/db/PadManager.js b/node/db/PadManager.js index 12682612..4e3a3199 100644 --- a/node/db/PadManager.js +++ b/node/db/PadManager.js @@ -115,7 +115,7 @@ exports.doesPadExists = function(padId, callback) db.get("pad:"+padId, function(err, value) { if(ERR(err, callback)) return; - callback(null, value != null); + callback(null, value != null && value.atext); }); } |