From 780f5a5231a3bfccf448110cb8c270224cd75357 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 19 Feb 2018 10:03:05 +0000 Subject: [PATCH] Don't crash CiviCRM when missing contact ID --- CRM/Contact/Page/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Page/View.php b/CRM/Contact/Page/View.php index 5b5e6ad397..884c18850a 100644 --- a/CRM/Contact/Page/View.php +++ b/CRM/Contact/Page/View.php @@ -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'); -- 2.25.1