From: jitendrapurohit Date: Fri, 22 Jan 2016 10:38:26 +0000 (+0530) Subject: CRM-17844 -- Registering 'as someone else' still affects logged-in user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7b4d7ab8ac883664751f5378116646b582678625;p=civicrm-core.git CRM-17844 -- Registering 'as someone else' still affects logged-in user --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index c53091d56b..87542685e4 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1918,7 +1918,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { */ protected function setContactID() { $tempID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); - if (isset($this->_params) && isset($this->_params['select_contact_id'])) { + if (isset($this->_params) && !empty($this->_params['select_contact_id'])) { $tempID = $this->_params['select_contact_id']; } if (isset($this->_params, $this->_params[0]) && !empty($this->_params[0]['select_contact_id'])) {