CRM-16189, changed variable name
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 9 Aug 2016 11:39:11 +0000 (17:09 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 29 Aug 2016 13:19:20 +0000 (18:49 +0530)
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189

CRM/Contribute/BAO/Contribution.php

index f757472edf18191ed94c4de2c4fac9c162ba0b8c..3b8474adab13b6ae1c16efcb6391c054e0272a5b 100644 (file)
@@ -5260,14 +5260,14 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
     // check if line item is for membership or participant
     foreach ($lineItems as $items) {
       if ($items['entity_table'] == 'civicrm_participant') {
-        $Update = FALSE;
+        $flag = FALSE;
         break;
       }
       elseif ($items['entity_table'] == 'civicrm_membership') {
-        $Update = FALSE;
+        $flag = FALSE;
       }
       else {
-        $Update = TRUE;
+        $flag = TRUE;
         break;
       }
     }