improved performance

This commit is contained in:
katagia 2003-07-09 16:36:39 +00:00
parent 7e59efcee8
commit 6b7f28b4c6
1 changed files with 16 additions and 16 deletions

View File

@ -223,7 +223,6 @@ switch ($select) {
$lastchars = substr($_SESSION['accounts'][$i]->general_username, $j+1, strlen($_SESSION['accounts'][$i]->general_username)-$j);
$_SESSION['accounts'][$i]->general_username = $firstchars . (intval($lastchars)+1);
}
}
while ($temp = ldapexists($_SESSION['accounts'][$i], 'user')) {
// get last character of username
$lastchar = substr($_SESSION['accounts'][$i]->general_username, strlen($_SESSION['accounts'][$i]->general_username)-1, 1);
@ -244,6 +243,7 @@ switch ($select) {
}
}
}
}
if ($values->general_username != $return->general_username) $errors[] = array('WARN', _('Username'), _('Username allready in use. Selected next free username.'));
$found=false;
for ($i=0; $i<sizeof($_SESSION['errors'][$row]); $i++)