diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-10 17:08:40 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-10 17:08:40 +0000 |
| commit | b1b8c9c957c59c85907339b10022b29de6515368 (patch) | |
| tree | db9cf18c8bedafe73d5e4bfaf8176a3b93a810a6 /roundcubemail/program/steps | |
| parent | 9a86aba577184aea5b2b226697f42e5e9d154081 (diff) | |
* fixing #1484494 (people can delete the last identity otherwise)
* FOR TRANSLATERS: introducing new message
git-svn-id: https://svn.roundcube.net/trunk@1035 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/settings/delete_identity.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/settings/delete_identity.inc b/roundcubemail/program/steps/settings/delete_identity.inc index 06fdd94f4..a5f3d4445 100644 --- a/roundcubemail/program/steps/settings/delete_identity.inc +++ b/roundcubemail/program/steps/settings/delete_identity.inc @@ -23,8 +23,13 @@ if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[ { if ($USER->delete_identity($ids)) + { $OUTPUT->show_message('deletedsuccessfully', 'confirmation'); - + } + else + { + $OUTPUT->show_message('nodeletelastidentity', 'error'); + } // send response if ($OUTPUT->ajax_call) $OUTPUT->send(); |
