From 2275df3bcaf41804c1c001a45db0310187984fdf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 May 2018 15:54:43 +0200 Subject: [PATCH] Fix js error when flagging a message as unread --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/app.js b/program/js/app.js index ae1e00f2190..591324580ad 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3470,7 +3470,7 @@ function rcube_webmail() // with select_all mode checking this.uids_to_list = function(uids) { - return this.select_all_mode ? '*' : (uids.length <= 1 ? uids.join(',') : uids); + return this.select_all_mode ? '*' : ($.isArray(uids) ? uids.join(',') : uids); }; // Sets title of the delete button