parent
c0c7ce59ad
commit
962d56ce4d
1 changed files with 4 additions and 2 deletions
|
@ -236,8 +236,10 @@ function insertUser(&$userdata) {
|
|||
if (empty($uids)) {
|
||||
$uid = 1;
|
||||
} else {
|
||||
arsort($uids);
|
||||
$uid = $uids[0] + 1;
|
||||
foreach ($uids as $currentuid) {
|
||||
$uid = max($uid, $currentuid);
|
||||
}
|
||||
$uid += 1;
|
||||
}
|
||||
$GLOBALS['namemap'][$uid] =
|
||||
array('uid' => $uid,
|
||||
|
|
Loading…
Reference in a new issue