/trunk/services/modules/0.1/determinations/ValiderDetermination.php |
---|
36,9 → 36,9 |
$this->verifierParametres($ressources, $parametres); |
$id_proposition = $ressources[1]; |
if(!$this->modifierObservationParDetermination($id_proposition, $parametres['auteur.id'])) |
throw new Exception($e, RestServeur::HTTP_CODE_ERREUR); |
if(! ($e = $this->modifierObservationParDetermination($id_proposition, $parametres['auteur.id'])) ) { |
throw new Exception("error: Cel returned \"$e\"", RestServeur::HTTP_CODE_ERREUR); |
} |
RestServeur::envoyerEnteteStatutHttp(RestServeur::HTTP_CODE_OK); |
} |