Update CRM/Contribute/Form/AbstractEditPayment.php
authorEileen McNaughton <eileen@mcnaughty.com>
Sun, 26 Nov 2023 03:15:39 +0000 (16:15 +1300)
committerGitHub <noreply@github.com>
Sun, 26 Nov 2023 03:15:39 +0000 (16:15 +1300)
Co-authored-by: demeritcowboy <demeritcowboy@hotmail.com>
CRM/Contribute/Form/AbstractEditPayment.php

index 45d6582ffef7b9084f3da50c44782be0e6cc43fc..6628f040857ab414c9ca6885f3e80713aebde285 100644 (file)
@@ -676,7 +676,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task {
         $displayName = civicrm_api3('contact', 'getvalue', ['id' => $this->getContactID(), 'return' => 'display_name']);
       }
     }
-    $this->assign('displayName', $displayName) ?? NULL;
+    $this->assign('displayName', $displayName ?? NULL);
   }
 
   protected function assignContactID(): void {