Skip to content

Node.js based forum software built for the modern web

add missing radix

Baris Usakli5c8bf3ce95cd
diff --git a/src/user.js b/src/user.js
index 8b41c05147..caf47fdcb9 100644
--- a/src/user.js
+++ b/src/user.js
@@ -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;