fix pitas fix

This commit is contained in:
John McLear 2012-03-31 18:15:08 +01:00
parent cfb58a80a3
commit 309e3b0994

View file

@ -115,7 +115,13 @@ exports.doesPadExists = function(padId, callback)
db.get("pad:"+padId, function(err, value) db.get("pad:"+padId, function(err, value)
{ {
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
callback(null, value != null && value.atext); if(value != null && value.atext){
callback(null, true);
}
else
{
callback(null, false);
}
}); });
} }