display_notification(_('Selected account type has been updated'));
}
else
{
if (add_account_type($_POST['id'], $_POST['name'], $_POST['class_id'], $_POST['parent'])) {
display_notification(_('New account type has been added'));
display_notification(_('Selected account type has been updated'));
}
else
{
if (add_account_type($_POST['id'], $_POST['name'], $_POST['class_id'], $_POST['parent'])) {
display_notification(_('New account type has been added'));