From d67cd489cddedb7badfbe8b1dbed362137d5aab7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 27 Aug 2014 14:09:15 -0400 Subject: [PATCH] crash fix --- src/user/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });