From 3fdbb2bdcfff05a191282b526b1ff3516a6e5dfd Mon Sep 17 00:00:00 2001 From: thomasb Date: Mon, 5 Dec 2011 13:14:54 +0000 Subject: Fix deletion of contacts from search results git-svn-id: https://svn.roundcube.net/trunk@5546 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c31a69788..d2b44344e 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4070,7 +4070,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