summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2012-02-27 14:13:47 +0100
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2012-02-27 14:13:47 +0100
commit973aad5c96e5731ad6891f0d507b630d76c63c1b (patch)
treedf7e2055d1f83ed1e8bfb2ac89b25b1f6392eb9b
parentda2b456b5b4402752e3f17c59428b2b801bb424e (diff)
downloadetherpad-lite-973aad5c96e5731ad6891f0d507b630d76c63c1b.zip
Fix doesPadExist check
-rw-r--r--node/db/PadManager.js2
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);
});
}