Skip to content

Node.js based forum software built for the modern web

fix for undefined topicTitle

barisusaklicb8abab5c52b
diff --git a/src/notifications.js b/src/notifications.js
index f32ca031d3..8e90e0d62f 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -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) {