From cb8abab5c52bd347fc87e09500e036ec740e3977 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 21 Mar 2016 18:13:36 +0200 Subject: [PATCH] fix for undefined topicTitle --- src/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {