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

Notices and Warnings in Contribute Repeat report

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.4.3
    • Component/s: CiviReport
    • Labels:
      None

      Description

      In file /CRM/Report/Form/Contribute/Repeat.php, notices and warnings are being fired when the report is run:

      Notice: Undefined variable: amount2 in CRM_Report_Form_Contribute_Repeat->statistics() (line 741 of ..../sites/all/modules/civicrm/CRM/Report/Form/Contribute/Repeat.php).
      Warning: implode(): Invalid arguments passed in CRM_Report_Form_Contribute_Repeat->statistics() (line 741 of .../sites/all/modules/civicrm/CRM/Report/Form/Contribute/Repeat.php).
      Notice: Undefined variable: average2 in CRM_Report_Form_Contribute_Repeat->statistics() (line 750 of .../sites/all/modules/civicrm/CRM/Report/Form/Contribute/Repeat.php).
      Warning: implode(): Invalid arguments passed in CRM_Report_Form_Contribute_Repeat->statistics() (line 750 of .../sites/all/modules/civicrm/CRM/Report/Form/Contribute/Repeat.php).

      Changing the following line of code in function statistics seems to avoid firing the notices and warnings:

      FROM:
      $amount = $average = $amount = $average = array();

      TO:
      $amount = $average = array();
      $amount2 = $average2 = array();

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hbergin Helen Bergin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: