summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/delete_identity.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-13 06:21:29 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-13 06:21:29 +0000
commit383001f055b670aa19b4de0d64e4518c42a7c06c (patch)
treecbc74bd1158dce4ce4dabcee04df33d1c1aecdf1 /roundcubemail/program/steps/settings/delete_identity.inc
parent90ffded9b90c9666538d6825d8a69ee8f06b2e0d (diff)
- ja_JP update (#1486911)
git-svn-id: https://svn.roundcube.net/trunk@3895 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/delete_identity.inc')
-rw-r--r--roundcubemail/program/steps/settings/delete_identity.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/roundcubemail/program/steps/settings/delete_identity.inc b/roundcubemail/program/steps/settings/delete_identity.inc
index 06bcab906..42c1da61f 100644
--- a/roundcubemail/program/steps/settings/delete_identity.inc
+++ b/roundcubemail/program/steps/settings/delete_identity.inc
@@ -31,13 +31,16 @@ if (!$OUTPUT->ajax_call && !$RCMAIL->check_request(RCUBE_INPUT_GPC)) {
if ($iid && preg_match('/^[0-9]+(,[0-9]+)*$/', $iid))
{
$plugin = $RCMAIL->plugins->exec_hook('identity_delete', array('id' => $iid));
-
- if (!$plugin['abort'] && $USER->delete_identity($iid)) {
- $OUTPUT->show_message('deletedsuccessfully', 'confirmation', null, false);
- }
- else {
- $OUTPUT->show_message('nodeletelastidentity', 'error', null, false);
+
+ if (!$plugin['abort']) {
+ if ($USER->delete_identity($iid)) {
+ $OUTPUT->show_message('deletedsuccessfully', 'confirmation', null, false);
+ }
+ else {
+ $OUTPUT->show_message('nodeletelastidentity', 'error', null, false);
+ }
}
+
// send response
if ($OUTPUT->ajax_call)
$OUTPUT->send();