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

Undefined index notice for NULL language index when browsing mailings

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.14
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Sprint:
      4.7.14 Easy-ish ones
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      A client's 4.7.13 installation has been getting the following errors when viewing the Draft and Unscheduled Mailings dashboard.

      Notice: Undefined index: in CRM_Mailing_Selector_Browse->getRows() (line 422 of /home/domain/public_html/sites/all/modules/civicrm/CRM/Mailing/Selector/Browse.php).
      

      Had a look in CRM/Mailing/Selector/Browse.php and found that it was due to line $rows[$key]['language'] = $languages[$row['language']]; trying to reference the NULL value $row['language'].

      Oddly, this hasn't appeared in our own installation, or any other we manage. (Note: PHP versions are up-to-date.)

      Patch on its way to check if $row['language'] isn't NULL.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: