Skip to content
Snippets Groups Projects
Commit 0f975e90 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fixing sessions array si pas d'état

parent 6bf7b834
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ $sessions = array_reverse($sessions); ...@@ -62,7 +62,7 @@ $sessions = array_reverse($sessions);
<?php foreach ($sessions as $instance) : ?> <?php foreach ($sessions as $instance) : ?>
<?php if ($canSupprimerInstance or $instance->estNonHistorise()) : ?> <?php if ($canSupprimerInstance or $instance->estNonHistorise()) : ?>
<tr class="<?php if ($instance->estHistorise()) echo " historise "; ?>" <tr class="<?php if ($instance->estHistorise()) echo " historise "; ?>"
style="<?php if (in_array($instance->getEtatActif()->getType()->getCode(), SessionEtats::ETATS_OUVERTS) style="<?php if ($instance->getEtatActif() && in_array($instance->getEtatActif()->getType()->getCode(), SessionEtats::ETATS_OUVERTS)
and ($instance->getDateClotureInscription() === null and ($instance->getDateClotureInscription() === null
or $instance->getDateClotureInscription() < (new DateTime()))) echo 'background: var(--unistrap-color-light)'; ?>" or $instance->getDateClotureInscription() < (new DateTime()))) echo 'background: var(--unistrap-color-light)'; ?>"
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment