Added error-message if no profile could be created
This commit is contained in:
parent
487d2b3c84
commit
40aa825088
|
@ -440,8 +440,9 @@ do { // X-Or, only one if() can be true
|
||||||
if ($_POST['f_finish_safeProfile']=='')
|
if ($_POST['f_finish_safeProfile']=='')
|
||||||
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
||||||
else {
|
else {
|
||||||
saveGroupProfile($account_new, $_POST['f_finish_safeProfile']);
|
if (saveGroupProfile($account_new, $_POST['f_finish_safeProfile']))
|
||||||
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
|
$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 last page displayed before user is created
|
||||||
$select_local='final';
|
$select_local='final';
|
||||||
|
|
|
@ -272,8 +272,9 @@ do { // X-Or, only one if() can be true
|
||||||
if ($_POST['f_finish_safeProfile']=='')
|
if ($_POST['f_finish_safeProfile']=='')
|
||||||
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
||||||
else {
|
else {
|
||||||
saveHostProfile($account_new, $_POST['f_finish_safeProfile']);
|
if (saveHostProfile($account_new, $_POST['f_finish_safeProfile']))
|
||||||
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
|
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
|
||||||
|
else $errors[] = array('ERROR', _('Save profile'), _('Wrong profilename given.'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -704,8 +704,9 @@ do { // X-Or, only one if() can be true
|
||||||
if ($_POST['f_finish_safeProfile']=='')
|
if ($_POST['f_finish_safeProfile']=='')
|
||||||
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
$errors[] = array('ERROR', _('Save profile'), _('No profilename given.'));
|
||||||
else {
|
else {
|
||||||
saveUSerProfile($account_new, $_POST['f_finish_safeProfile']);
|
if (saveUserProfile($account_new, $_POST['f_finish_safeProfile']))
|
||||||
$errors[] = array('INFO', _('Save profile'), _('New profile created.'));
|
$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 last page displayed before user is created
|
||||||
$select_local='final';
|
$select_local='final';
|
||||||
|
|
Loading…
Reference in New Issue