mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Slight mod to make it work independently for users/groups (for ldap)
This commit is contained in:
parent
c099d2d296
commit
43e6a077ed
@ -141,12 +141,13 @@
|
||||
|
||||
if ($account_type == 'g')
|
||||
{
|
||||
$nextid = $phpgw->common->last_id('groups',$min,$max);
|
||||
$type = 'groups';
|
||||
}
|
||||
else
|
||||
{
|
||||
$nextid = $phpgw->common->last_id('accounts',$min,$max);
|
||||
$type = 'accounts';
|
||||
}
|
||||
$nextid = $phpgw->common->last_id($type,$min,$max);
|
||||
|
||||
/* Loop until we find a free id */
|
||||
$free = 0;
|
||||
@ -155,14 +156,14 @@
|
||||
//echo '<br>calling search for id: '.$nextid;
|
||||
if ($this->exists($nextid))
|
||||
{
|
||||
$nextid = $phpgw->common->next_id('accounts',$min,$max);
|
||||
$nextid = $phpgw->common->next_id($type,$min,$max);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* echo '<br>calling search for lid: '.$account_lid; */
|
||||
if ($this->exists($account_lid))
|
||||
{
|
||||
$nextid = $phpgw->common->next_id('accounts',$min,$max);
|
||||
$nextid = $phpgw->common->next_id($type,$min,$max);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user