diff --git a/src/user/notifications.js b/src/user/notifications.js index b6e82e6d23..9d43845b9c 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -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; });