improved performance
This commit is contained in:
parent
7e59efcee8
commit
6b7f28b4c6
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue