Merge pull request #17636 from MikeyMJCO/patch-5
[civicrm-core.git] / CRM / PCP / Form / PCP.php
index cb7482a3ffb3e2a9688aa14a75b87e9cf5267e44..d9fbcb7c697525037e0b9e015da0abe00694989e 100644 (file)
@@ -43,8 +43,8 @@ class CRM_PCP_Form_PCP extends CRM_Core_Form {
     }
 
     if (!$this->_action) {
-      $this->_action = CRM_Utils_Array::value('action', $_GET);
-      $this->_id = CRM_Utils_Array::value('id', $_GET);
+      $this->_action = $_GET['action'] ?? NULL;
+      $this->_id = $_GET['id'] ?? NULL;
     }
     else {
       $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);