crash fix

This commit is contained in:
barisusakli
2014-09-19 19:24:28 -04:00
parent 59120df71c
commit 3d4dad226e

View File

@@ -229,9 +229,9 @@ var async = require('async'),
if (err) {
return callback(err);
}
value = value ? value.toString() : '';
nids = notifications.filter(function(notification) {
return notification && notification[field] !== value.toString();
return notification && notification[field] !== value;
}).map(function(notification) {
return notification.nid;
});