check error fix ip

This commit is contained in:
barisusakli
2015-05-19 23:07:01 -04:00
parent aa577f4adc
commit addd6ecde7
2 changed files with 5 additions and 1 deletions

View File

@@ -445,6 +445,10 @@ SocketUser.loadPage = function(socket, data, callback) {
callback(null, userData);
}
if (!data || !data.page) {
return callback(new Error('[[error:invalid-data]]'));
}
var controllers = require('../controllers/users');
var pagination = require('../pagination');
var set = '';