Skip to content

Node.js based forum software built for the modern web

closed #165 - issue where the site title was "undefined" if no title was set in the config, parenthesis issue

Julian Lamc3c5f5ab926f
diff --git a/src/meta.js b/src/meta.js
index aa2181f0d0..772230d94a 100644
--- a/src/meta.js
+++ b/src/meta.js
@@ -81,7 +81,7 @@ var utils = require('./../public/src/utils.js'),
var title;
if (err) title = global.config.title || 'NodeBB';
- else title = (values.notifCount > 0 ? '(' + values.notifCount + ') ' : '') + (values.title ? values.title + ' | ' : '') + global.config.title || 'NodeBB';
+ else title = (values.notifCount > 0 ? '(' + values.notifCount + ') ' : '') + (values.title ? values.title + ' | ' : '') + (global.config.title || 'NodeBB');
callback(null, title);
});