fix pitas fix

pull/558/merge
John McLear 2012-03-31 18:15:08 +01:00
parent c960186f8d
commit bc76913a6d
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
});
}