Browse files

fix pitas fix

  • Loading branch information...
1 parent cfb58a8 commit 309e3b09942389bd92205fc04d5e73088a30df60 @JohnMcLear JohnMcLear committed Mar 31, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 node/db/PadManager.js
View
8 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);
+ }
});
}

0 comments on commit 309e3b0

Please sign in to comment.