Merge pull request #22986 from colemanw/afformFixBlocksAgain
[civicrm-core.git] / api / v3 / ContributionPage.php
index 4202987d176f989f79aae6f48f4c658c746c2944..d744043f712240ef6cdf4e1c23f4c95a2b9e0767 100644 (file)
@@ -102,7 +102,7 @@ function civicrm_api3_contribution_page_validate($params) {
   // authorization from a payment processor like Paypal checkout) the lack of a qfKey will not result in a valid
   // one being generated so we generate one first.
   $originalRequest = $_REQUEST;
-  $qfKey = CRM_Utils_Array::value('qfKey', $_REQUEST);
+  $qfKey = $_REQUEST['qfKey'] ?? NULL;
   if (!$qfKey) {
     $_REQUEST['qfKey'] = CRM_Core_Key::get('CRM_Core_Controller', TRUE);
   }