From 3c5099f22b009ada55a967c10c6860927e003113 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 7 Dec 2011 07:50:00 +0000 Subject: - Applied fixes from trunk up to r5553 --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 35806fce3..76ea145fe 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4065,7 +4065,7 @@ function rcube_webmail() this.delete_contacts = function() { var selection = this.contact_list.get_selection(), - undelete = this.env.address_sources[this.env.source].undelete; + undelete = this.env.source && this.env.address_sources[this.env.source].undelete; // exit if no mailbox specified or if selection is empty if (!(selection.length || this.env.cid) || (!undelete && !confirm(this.get_label('deletecontactconfirm')))) -- cgit v1.2.3