isNan check

v1.18.x
barisusakli 11 years ago
parent edd73b5be2
commit 34a4a2103f

@ -244,7 +244,10 @@ var async = require('async'),
};
Topics.getTopicWithPosts = function(tid, set, uid, start, end, reverse, callback) {
if (isNaN(start) || isNaN(end)) {
var e = new Error('TOO LARGE');
winston.warn('IS_NAN_CHECK set, start, end, uid, tid', set, start, end, uid, tid, e.stack);
}
Topics.getTopicData(tid, function(err, topicData) {
if (err || !topicData) {
return callback(err || new Error('[[error:no-topic]]'));

Loading…
Cancel
Save