fix for undefined topicTitle

v1.18.x
barisusakli 9 years ago
parent 301f12d630
commit cb8abab5c5

@ -450,7 +450,7 @@ var async = require('async'),
});
var numUsers = usernames.length;
var title = S(notifications[modifyIndex].topicTitle).decodeHTMLEntities().s;
var title = S(notifications[modifyIndex].topicTitle || '').decodeHTMLEntities().s;
var titleEscaped = title.replace(/%/g, '%').replace(/,/g, ',');
if (numUsers === 2) {

Loading…
Cancel
Save