crash fix

This commit is contained in:
barisusakli
2014-08-27 14:09:15 -04:00
parent fdf19f9025
commit d67cd489cd

View File

@@ -254,7 +254,7 @@ var async = require('async'),
}
notifications = notifications.filter(function(notification) {
return !!notification || notification[field] !== value.toString();
return notification && notification[field] !== value.toString();
}).map(function(notification) {
return notification.nid;
});