X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FForm%2FPCPAccount.php;h=d240da76aa745e1d2ed8b48a1fe912266354a139;hb=2e1f50d6c1bd31b78fa97d1e899d4ae01a2cfd3d;hp=2246b187c210562e39cc3858845cb1c725798589;hpb=c735fb7e38514eb6d7732ffb11ac21ac33e570b9;p=civicrm-core.git diff --git a/CRM/PCP/Form/PCPAccount.php b/CRM/PCP/Form/PCPAccount.php index 2246b187c2..d240da76aa 100644 --- a/CRM/PCP/Form/PCPAccount.php +++ b/CRM/PCP/Form/PCPAccount.php @@ -53,7 +53,7 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { $contactID = CRM_Core_DAO::getFieldValue('CRM_PCP_DAO_PCP', $this->_id, 'contact_id'); } - $this->_contactID = isset($contactID) ? $contactID : $session->get('userID'); + $this->_contactID = $contactID ?? $session->get('userID'); if (!$this->_pageId) { if (!$this->_id) { $msg = ts('We can\'t load the requested web page due to an incomplete link. This can be caused by using your browser\'s Back button or by using an incomplete or invalid link.');