CRM_Contribution_BAO_Contribution - Fix test failure
authorTim Otten <totten@civicrm.org>
Mon, 27 Oct 2014 03:34:50 +0000 (20:34 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 27 Oct 2014 03:34:50 +0000 (20:34 -0700)
Test failurewas  observed on toj-1 (Ubuntu 12.04) with paratest.

https://test.civicrm.org/job/CiviCRM-Core-Matrix-exp/CIVIVER=4.5,label=toj-1/8/testReport/%28root%29/CRM_Batch_Form_EntryTest/testProcessMembership/

CRM/Contribute/BAO/Contribution.php

index b0a0bbeaff4e36ca26bfcaa1e13073e7ce8b6fe7..69d476e4d54b1d201b315cf47cf87824821d1baa 100644 (file)
@@ -235,7 +235,8 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
 
       return $contribution;
     }
-    return NULL;
+    $null = NULL; // return by reference
+    return $null;
   }
 
   /**