$cid = CRM_Utils_Request::retrieve('cid', 'String', $this, FALSE);
if ($cid){
$cid = explode(',',$cid);
+ $displayName = array();
- foreach ($cid as $key => $val) {
+ foreach ($cid as $val) {
$displayName[] = CRM_Contact_BAO_Contact::displayName($val);
}
- CRM_Utils_System::setTitle(implode(',',$displayName) . ' - ' . ts('Email'));
+ CRM_Utils_System::setTitle(implode(',', $displayName) . ' - ' . ts('Email'));
}
- else{
+ else {
CRM_Utils_System::setTitle(ts('New Email'));
}
CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
//here we are getting logged in user id as array but we need target contact id. CRM-5988
$cid = $form->get('cid');
if ($cid) {
- $form->_contactIds = explode(',',$cid);
+ $form->_contactIds = explode(',', $cid);
}
if (count($form->_contactIds) > 1) {
$form->_single = FALSE;