alecpl
2010-08-13 b72a1001dc8e4fa7a2245cde4a0556f405eccbc9
program/steps/settings/delete_identity.inc
@@ -32,12 +32,15 @@
{
  $plugin = $RCMAIL->plugins->exec_hook('identity_delete', array('id' => $iid));
  
  if (!$plugin['abort'] && $USER->delete_identity($iid)) {
  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();