Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60298


Change subject: Prevent some PHP warnings
......................................................................

Prevent some PHP warnings

Change-Id: Ifbdf1ee9d74ea102503081be9fe088c1d374062d
---
M sites/all/modules/wmf_reports/CRM/Contact/ContactsAndContributionsExport.php
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/98/60298/1

diff --git 
a/sites/all/modules/wmf_reports/CRM/Contact/ContactsAndContributionsExport.php 
b/sites/all/modules/wmf_reports/CRM/Contact/ContactsAndContributionsExport.php
index 2e6825f..6358040 100644
--- 
a/sites/all/modules/wmf_reports/CRM/Contact/ContactsAndContributionsExport.php
+++ 
b/sites/all/modules/wmf_reports/CRM/Contact/ContactsAndContributionsExport.php
@@ -1,5 +1,9 @@
 <?php
 
+/**
+ * Export Contacts and Contributions: a new action that can be taken on
+ * Advanced Search results.
+ */
 class CRM_Contact_ContactsAndContributionsExport
 {
     static function alterExport(&$table, &$headerRows, &$sqlColumns, 
&$exportMode)
@@ -256,6 +260,9 @@
         $previous_year = date("Y", strtotime("-1 year"));
         $lybunt = 0;
         $sybunt = 0;
+        $is_this_year = false;
+        $is_previous_year = false;
+        $is_any_other_year = false;
 
         foreach ($contributions as $row)
         {

-- 
To view, visit https://gerrit.wikimedia.org/r/60298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbdf1ee9d74ea102503081be9fe088c1d374062d
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Adamw <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to