From 13a2c465ae72dd39730c1b13489286ff06d24528 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 29 Oct 2013 15:52:20 +0000 Subject: [PATCH] null chekc in profile --- modules/profile/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/api.js b/modules/profile/api.js index f925f42..db3107a 100644 --- a/modules/profile/api.js +++ b/modules/profile/api.js @@ -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) {