systopia / de.systopia.remotetools

CiviCRM Remote Tools Extension - Toolkit for CiviCRM Integration with remote systems
Other
0 stars 3 forks source link

Prevent TypeError when contact has no CiviRemote roles #38

Closed jensschuppe closed 1 month ago

jensschuppe commented 1 month ago

Fixes TypeError: array_combine(): Argument #1 ($keys) must be of type array, null given in array_combine() (line 81 of /path/to/de.systopia.remotetools/CRM/Remotetools/ContactRoles.php). when a contact has no roles (i.e. the field has never been saved and its value is thus NULL).

jensschuppe commented 1 month ago

Duplicate of #37.