more confusing, works perfectably

v1.18.x
psychobunny 11 years ago
parent a67e0ea3c2
commit d78fdb1520

@ -324,7 +324,7 @@ SocketTopics.follow = function(socket, tid, callback) {
};
SocketTopics.loadMore = function(socket, data, callback) {
if(!data || !data.tid || parseInt(data.after, 10) < 0) {
if(!data || !data.tid || !(parseInt(data.after, 10) >= 0)) {
return callback(new Error('[[error:invalid-data]]'));
}

Loading…
Cancel
Save