From 8e20901e971df8b53bc5a333506d73c6a53dd416 Mon Sep 17 00:00:00 2001 From: svncommit Date: Sat, 11 Nov 2006 23:02:04 +0000 Subject: finish previous commit --- program/js/app.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index 50078cfd8..caef29271 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1272,10 +1272,12 @@ function rcube_webmail() this.permanently_remove_messages = function() { // exit if no mailbox specified or if selection is empty - var selection = this.message_list.get_selection(); - if (!(selection.length || this.env.uid)) - return; - + if (!this.env.uid) + { + if (!this.message_list || !this.message_list.get_selection().length) + return; + } + var a_uids = new Array(); if (this.env.uid) -- cgit v1.2.3