Fixes bug where if post edit was called without a title, NodeBB would crash

This commit is contained in:
Julian Lam
2015-10-29 11:45:28 -04:00
parent 8787f04757
commit 098111ba5b

View File

@@ -86,7 +86,7 @@ module.exports = function(Posts) {
function editMainPost(data, postData, callback) {
var tid = postData.tid;
var title = data.title.trim();
var title = data.title ? data.title.trim() : '';
async.parallel({
topic: function(next) {