From 3d4dad226e8e8527c1319a9ff7ed704ffa259324 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 19 Sep 2014 19:24:28 -0400 Subject: [PATCH] crash fix --- src/user/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user/notifications.js b/src/user/notifications.js index 08703d6237..fa61fce32a 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -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; });