fix for bug [ 1417178 ] Group membership after edit

--> negative indexes to arrays are treated different if represened as string or integer
This commit is contained in:
Ralf Becker 2006-03-08 18:25:24 +00:00
parent a5a87c4fe8
commit eb6d8504c1

View File

@ -808,7 +808,7 @@
/* print "$key,". $groupData['account_id'] ."<br>";*/
/* print "$key,". $_userData['account_groups'][1] ."<br>"; */
if ($newGroups[$groupData['account_id']])
if ($newGroups[(string) $groupData['account_id']])
{
$acl->add_repository('phpgw_group',$groupData['account_id'],$_userData['account_id'],1);
}