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

remise du if des campagne precendente

parent 5a703223
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Structure/src/Structure/Controller/StructureController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ class StructureController extends AbstractActionController {

        $last =  $this->getCampagneService()->getLastCampagne();
        $campagnes =  $this->getCampagneService()->getCampagnesActives();
        $campagnes[] = $last;
        if ($last !== null) $campagnes[] = $last;
        usort($campagnes, function (Campagne $a, Campagne $b) { return $a->getDateDebut() > $b->getDateDebut();});

        return new ViewModel([