From: eileen Date: Fri, 15 Mar 2019 21:11:45 +0000 (+1300) Subject: [NFC] remove unnecessary variable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=18fe20ebde71c79cc571c74bb3bd9a7db5c8eace;p=civicrm-core.git [NFC] remove unnecessary variable --- diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 8557a30dec..d7475ca9c9 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -527,8 +527,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { // transactions etc // for things like tell a friend if (!$this->getContactID() && !empty($value['is_primary'])) { - $session = CRM_Core_Session::singleton(); - $session->set('transaction.userID', $contactID); + CRM_Core_Session::singleton()->set('transaction.userID', $contactID); } $value['description'] = ts('Online Event Registration') . ': ' . $this->_values['event']['title'];