Skip to content

Node.js based forum software built for the modern web

fixes guest name on home

barisusaklif65998f4c21a
diff --git a/src/user.js b/src/user.js
index 041bdfc07c..029897383e 100644
--- a/src/user.js
+++ b/src/user.js
@@ -114,7 +114,7 @@ var bcrypt = require('bcryptjs'),
user.password = null;
}
- if (parseInt(user.uid, 10) === 0) {
+ if (!parseInt(user.uid, 10)) {
user.username = '[[global:guest]]';
user.userslug = '';
}