Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.15, 4.7.20, 4.7.22, 4.7.24
-
Fix Version/s: 4.7.28
-
Component/s: Drupal Integration Modules
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
Some times there is this Notice:
Notice : Undefined offset: 5 dans _civicrm_member_roles_sync() (ligne 587 dans /xxxxxxx/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module).
This offset concern expired role.
This come from a bug in line 568 where it is missing an 's' : the expired element should be removed from $membership*s*, not $membership.
foreach ($memberships['values'] as $key => $membership) {
if (in_array($membership['status_id'], $inactive)){
unset($memberships['values'][$key]);
}
}