oops fixed

v1.18.x
Baris Soner Usakli 11 years ago
parent 7b4f098cb4
commit 860aabe0d3

@ -216,7 +216,8 @@ var bcrypt = require('bcryptjs'),
}
User.saveSettings = function(uid, data, callback) {
if(!data.topicsPerPage || !data.postsPerPage || parseInt(data.topicsPerPage, 10) <= 0 || !parseInt(data.postsPerPage, 10) <= 0) {
if(!data.topicsPerPage || !data.postsPerPage || parseInt(data.topicsPerPage, 10) <= 0 || parseInt(data.postsPerPage, 10) <= 0) {
return callback(new Error('Invalid pagination value!'));
}

Loading…
Cancel
Save