diff --git a/Controleur/ControleurRechercherassure.php b/Controleur/ControleurRechercherassure.php index a406f08..dce73d1 100644 --- a/Controleur/ControleurRechercherassure.php +++ b/Controleur/ControleurRechercherassure.php @@ -59,8 +59,8 @@ class ControleurRechercherassure extends Controleur { } - if (count($beneficiaires) == 1) - + // if (count($beneficiaires) == 1) + if ($beneficiaires->rowCount() == 1) { $this->rediriger("Fichebeneficiaire", $beneficiaires['0']['id']); } else