Sync Groups between LDAP and DOLIBARR (Latest Version)

Hello,

When I go to sync groups via the scripts folder it returns:
GroupUpdate # Website Admins: name=Website Admins → Updated group id=11 name=Website Admins
PHP Warning: Invalid argument supplied for foreach() in W:\portal\dolibarr-develop\scripts\user\sync_groups_ldap2dolibarr.php on line 169
No error, we commit

and does not sync/add users to the group, also removes any users previously added.

Eddie