v1.18.x
barisusakli 10 years ago
parent 1e453140d9
commit 9ff35a18f2

@ -219,7 +219,7 @@ var async = require('async'),
Notifications.markRead = function(nid, uid, callback) {
callback = callback || function() {};
if (!parseInt(uid, 10) || !parseInt(nid, 10)) {
if (!parseInt(uid, 10) || !nid) {
return callback();
}
Notifications.markReadMultiple([nid], uid, callback);

Loading…
Cancel
Save