Always assign footer_text
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 8 May 2023 04:46:31 +0000 (16:46 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 8 May 2023 04:46:31 +0000 (16:46 +1200)
CRM/Contribute/Form/Contribution/Main.php

index 5d5132686dd1ec429c25b471f88b0202ba18dceb..c4c6d35692e546d950e373a493c15d79becd20c7 100644 (file)
@@ -108,10 +108,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
       $qParams .= "&amp;pcpId={$pcpId}";
     }
     $this->assign('qParams', $qParams);
-
-    if (!empty($this->_values['footer_text'])) {
-      $this->assign('footer_text', $this->_values['footer_text']);
-    }
+    $this->assign('footer_text', $this->_values['footer_text'] ?? NULL);
   }
 
   /**