public function listSend($recipient, $level = 0, $people = null) { $number = 0; $list_send = ''; foreach ($recipient as $key => $value) { if (is_array($value) | is_object($value)) { parent::listArray($value, $level += 1); } else { // $number = ($key + 1); $number = $number + 1; $list_send .= str_repeat(" ", $level * 3); $list_send .= $number . " : " . $value . "<br>"; } } // $list_send.= '<div> </div>'; $list_send .= '<h4>' . JText::_('COM_ICAGENDA_NEWSLETTER_NB_EMAIL_SEND') . ' = ' . $number . ''; $list_send .= '<small> (' . JText::_('COM_ICAGENDA_REGISTRATION_TICKETS') . ': ' . $people . ')</small></h4>'; return $list_send; }