<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$customGroup = $this->get('customProfile');
$this->assign('customProfile', $customGroup);
- $this->assign('primaryParticipantProfile', $this->get('primaryParticipantProfile'));
- $this->assign('addParticipantProfile', $this->get('addParticipantProfile'));
+ CRM_Event_Form_Registration_Confirm::assignProfiles($this);
CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $this->_values['event']));
}
$params['entity_table'] = 'civicrm_event';
$data = array();
CRM_Friend_BAO_Friend::retrieve($params, $data);
- if (CRM_Utils_Array::value('is_active', $data)) {
+ if (!empty($data['is_active'])) {
$friendText = $data['title'];
$this->assign('friendText', $friendText);
if ($this->_action & CRM_Core_Action::PREVIEW) {