dev/core#1264 - Fix notice error on contribution page
authorJitendra Purohit <jitendra@fuzion.co.nz>
Wed, 18 Sep 2019 09:26:58 +0000 (14:56 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Wed, 18 Sep 2019 09:26:58 +0000 (14:56 +0530)
CRM/Contribute/BAO/Contribution.php

index bf3b53a599cbe9c2a5252667cf77a6f387d8f776..f2995582e1caafbe86388162ec77c1d6318d3d7d 100644 (file)
@@ -4690,7 +4690,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac
     // if we are still empty see if we can use anything from a contribution page.
     if (!empty($pageValues['receipt_from_email'])) {
       return [
-        $pageValues['receipt_from_name'],
+        CRM_Utils_Array::value('receipt_from_name', $pageValues),
         $pageValues['receipt_from_email'],
       ];
     }