From c4b8bd6c1792504a9d41844a5391eab9042fb28b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 10 Feb 2014 09:56:40 +0000 Subject: [PATCH] avoid javascript error on preview of no search results --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index ae23ede593..a1b39e446e 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -713,7 +713,7 @@ app.classes.mail = AppJS.extend( // When body is requested, mail is marked as read by the mail server. Update UI to match. if (typeof dataElem != 'undefined' && typeof dataElem.data != 'undefined' && typeof dataElem.data.flags != 'undefined' && typeof dataElem.data.flags.read != 'undefined') dataElem.data.flags.read = 'read'; - if (typeof dataElem != 'undefined' && typeof dataElem.data != 'undefined' && (dataElem.data.class.indexOf('unseen') >= 0 || dataElem.data.class.indexOf('recent') >= 0)) + if (typeof dataElem != 'undefined' && typeof dataElem.data != 'undefined' && typeof dataElem.data.class != 'undefined' && (dataElem.data.class.indexOf('unseen') >= 0 || dataElem.data.class.indexOf('recent') >= 0)) { this.mail_removeRowClass(messages,'recent'); this.mail_removeRowClass(messages,'unseen');