Commit a31c8427 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Commit ... ter

parent 806e7406
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1448,9 +1448,8 @@ class These implements HistoriqueAwareInterface, ResourceInterface
     */
    public function getPresidentJuryEmail() : ?string
    {
        /** @var Acteur[] $membres */
        $president = $this->getActeursByRoleCode(Role::CODE_PRESIDENT_JURY)->toArray();
        if (count($president) !== 1) throw new \RuntimeException("Pas de président ...");
        if (count($president) !== 1) throw new \RuntimeException("Nombre de président incorrect ...");
        $president = current($president);

        if ($president->getIndividu()->getEmail() !== null) return $president->getIndividu()->getEmail();