Don't crash CiviCRM when missing contact ID
authorMatthew Wire <devel@mrwire.co.uk>
Mon, 19 Feb 2018 10:03:05 +0000 (10:03 +0000)
committerMatthew Wire <devel@mrwire.co.uk>
Mon, 19 Feb 2018 10:03:05 +0000 (10:03 +0000)
CRM/Contact/Page/View.php

index 5b5e6ad3977648e79340d0d5a56cf406edf2c402..884c18850a2c118e6eef01efdb38f45555f22abd 100644 (file)
@@ -85,7 +85,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page {
     $gcid = CRM_Utils_Request::retrieve('gcid', 'Positive', $this);
 
     if (!$gcid) {
-      $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
+      $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
     }
     else {
       $this->_contactId = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_GroupContact', $gcid, 'contact_id');