3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

null chekc in profile

This commit is contained in:
reality 2013-10-29 15:52:20 +00:00
parent 1920b4fd03
commit 13a2c465ae

View File

@ -67,7 +67,7 @@ var api = function(dbot) {
'getAllProfilesWith': function(item, callback) {
var profiles = [];
this.db.scan('profiles', function(profile) {
if(_.has(profile.profile, item)) {
if(_.has(profile.profile, item) && profile.profile[item] != null) {
profiles.push(profile);
}
}, function(err) {