Added error-message if no profile could be created

This commit is contained in:
uid111856 2003-10-23 19:20:53 +00:00
parent 487d2b3c84
commit 40aa825088
3 changed files with 9 additions and 6 deletions

View File

@ -440,8 +440,9 @@ do { // X-Or, only one if() can be true
if ($_POST['f_finish_safeProfile']=='')
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
else {
saveGroupProfile($account_new, $_POST['f_finish_safeProfile']);
if (saveGroupProfile($account_new, $_POST['f_finish_safeProfile']))
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
else $errors[] = array('ERROR', _('Save profile'), _('Wrong profilename given.'));
}
// select last page displayed before user is created
$select_local='final';

View File

@ -272,8 +272,9 @@ do { // X-Or, only one if() can be true
if ($_POST['f_finish_safeProfile']=='')
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
else {
saveHostProfile($account_new, $_POST['f_finish_safeProfile']);
if (saveHostProfile($account_new, $_POST['f_finish_safeProfile']))
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
else $errors[] = array('ERROR', _('Save profile'), _('Wrong profilename given.'));
}
break;
}

View File

@ -704,8 +704,9 @@ do { // X-Or, only one if() can be true
if ($_POST['f_finish_safeProfile']=='')
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
else {
saveUSerProfile($account_new, $_POST['f_finish_safeProfile']);
if (saveUserProfile($account_new, $_POST['f_finish_safeProfile']))
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
else $errors[] = array('ERROR', _('Save profile'), _('Wrong profilename given.'));
}
// select last page displayed before user is created
$select_local='final';