crash fix

v1.18.x
barisusakli 11 years ago
parent 7361aec709
commit 1075305444

@ -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];
}

Loading…
Cancel
Save