Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19995

Notice : Undefined offset: 5 dans _civicrm_member_roles_sync()

    Details

    • 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]);
              }
            }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              olivier Olivier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: