mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
crash fix
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user