From d0b72178f7152fcc09873248e1d73c6b13c92fd5 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 11 Feb 2014 12:18:03 +0000 Subject: [PATCH] fix problem on client side counter decrease --- mail/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 48faa62fda..2104033b4e 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1034,7 +1034,8 @@ app.classes.mail = AppJS.extend( ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]'); var _foldernode = ftree.getSelectedNode(); var counter = _foldernode.label.match(this._unseen_regexp); - var icounter = parseInt(counter[0].replace(' (','').replace(')','')); + var icounter = 0; + if ( counter ) icounter = parseInt(counter[0].replace(' (','').replace(')','')); if (icounter>0) { var newcounter = icounter-1;