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