$maxNbTickets = $item->params->get('maxReg', '1000000'); // TODO: check all functions using max nb of tickets, and replace by empty for unlimited
$statutReg = $item->params->get('statutReg', '');
// Limited nb of tickets for the date
if ($maxNbTickets != '1000000'
&& $statutReg == '1')
{
$SEATS_AVAILABLE = ($maxNbTickets - $item->registered);
if ($SEATS_AVAILABLE === 0)
{
$SEATS_AVAILABLE = JText::_('COM_ICAGENDA_REGISTRATION_DATE_NO_TICKETS_LEFT');
}
$MAX_NB_OF_SEATS = $maxNbTickets;
}
Connexion ou Créer un compte pour participer à la conversation.
Connexion ou Créer un compte pour participer à la conversation.