From 1075305444031903a9cb7a3b347d57239c54bbe1 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 5 Sep 2014 03:00:53 -0400 Subject: [PATCH] crash fix --- src/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/notifications.js b/src/notifications.js index f0e36a5d76..d8c06d17f0 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -242,6 +242,9 @@ var async = require('async'), Notifications.markReadMultiple = function(nids, uid, callback) { callback = callback || function() {}; + if (!nids) { + return callback(null); + } if (!Array.isArray(nids) && parseInt(nids, 10) > 0) { nids = [nids]; }