Skip to content
Snippets Groups Projects
Commit 48709854 authored by root's avatar root
Browse files

Consolidation

parent 10bde790
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ class Formation implements HistoriqueAwareInterface,
{
$sessions = $this->getSessions();
$sessions = array_filter($sessions, function (Session $a) use ($etatCodes) {
return in_array($a->getEtatActif()->getType()->getCode(), $etatCodes);
return ($a->getEtatActif() && in_array($a->getEtatActif()->getType()->getCode(), $etatCodes));
});
return $sessions;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment