diff options
author | thomascube <thomas@roundcube.net> | 2011-12-05 13:14:54 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-12-05 13:14:54 +0000 |
commit | 8bbc6204fc220fa5ed12fc7eaa9ee4a812ec7cde (patch) | |
tree | 9ecb9b11fe26b3193cc28fbd3b4f16d4a91cd800 /program/js/app.js | |
parent | ac9ba4480ddf137987b5ae98a644d5c620c50f3b (diff) |
Fix deletion of contacts from search results
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index c31a69788..d2b44344e 100644 --- a/program/js/app.js +++ b/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')))) |