add missing radix

v1.18.x
Baris Usakli 7 years ago
parent 9aa9183cc3
commit 5c8bf3ce95

@ -110,7 +110,7 @@ User.getUsers = function (uids, uid, callback) {
};
User.getStatus = function (userData) {
if (parseInt(userData.uid) <= 0) {
if (parseInt(userData.uid, 10) <= 0) {
return 'offline';
}
var isOnline = (Date.now() - parseInt(userData.lastonline, 10)) < 300000;

Loading…
Cancel
Save