diff --git a/Modele/Gestionconfiee.php b/Modele/Gestionconfiee.php index 4ee36f00..95d6b061 100755 --- a/Modele/Gestionconfiee.php +++ b/Modele/Gestionconfiee.php @@ -15,13 +15,14 @@ class Gestionconfiee extends Modele { public function getGcAssureurId($idGc) { - $sql = "sp_get_garant_id(?);"; + $sql = "CALL sp_get_garant_id(?);"; $resultat = $this->executerRequete($sql, array($idGc)); $context = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['codeGcAssureur_C'] = $context['codeGcAssureur']; $_SESSION['GcAssureur_C'] = $context['libelle']; + return $context; }