diff options
author | till <till@php.net> | 2008-02-10 17:08:40 +0000 |
---|---|---|
committer | till <till@php.net> | 2008-02-10 17:08:40 +0000 |
commit | e3a0af34d52c41fc2f45522528e484f858f1ce3e (patch) | |
tree | 15f196a0e84ad8838474998291f580fbcd839e70 /program/steps/settings/delete_identity.inc | |
parent | 56c4587f0aef450a3a64194cd09b0d3c2913bc18 (diff) |
* fixing #1484494 (people can delete the last identity otherwise)
* FOR TRANSLATERS: introducing new message
Diffstat (limited to 'program/steps/settings/delete_identity.inc')
-rw-r--r-- | program/steps/settings/delete_identity.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/settings/delete_identity.inc b/program/steps/settings/delete_identity.inc index 06fdd94f4..a5f3d4445 100644 --- a/program/steps/settings/delete_identity.inc +++ b/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(); |