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

This commit is contained in:
Julian Lam
2013-08-13 12:10:07 -04:00
parent 0fef0aa582
commit c3c5f5ab92

View File

@@ -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);
});