Fixed little bug. Displayed Final-Page although there are some

errors. Fixed.
This commit is contained in:
katagia 2003-10-30 08:15:32 +00:00
parent cd9e2e3aa6
commit cad6c58fa7
2 changed files with 4 additions and 2 deletions

View File

@ -328,7 +328,8 @@ do { // X-Or, only one if() can be true
}
if ($_POST['next_final']) {
// Check if objectclasses are OK
$stay = false;
if (is_array($errors)) $stay=true;
else $stay = false;
if ($config_intern->is_samba3() && !isset($account_new->smb_domain)) {
// Samba page not viewed; can not create group because if missing options
$errors[] = array("ERROR", _("Samba Options not set!"), _("Please check settings on samba page."));

View File

@ -544,7 +544,8 @@ do { // X-Or, only one if() can be true
}
if ($_POST['next_final']) {
// Go from final to next page if no error did ocour
$stay = false;
if (is_array($errors)) $stay=true;
else $stay = false;
if (($account_old) && ($account_new->general_uidNumber != $account_old->general_uidNumber))
$errors[] = array('INFO', _('UID-number has changed. You have to run the following command as root in order to change existing file-permissions:'),
'find / -gid ' . $account_old->general_uidNumber . ' -exec chown ' . $account_new->general_uidNumber . ' {} \;');