Subversion Repositories eFlore/Applications.del

Rev

Rev 1456 | Rev 1684 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1456 Rev 1457
Line 34... Line 34...
34
	
34
	
35
	public function modifier($ressources, $parametres) {
35
	public function modifier($ressources, $parametres) {
36
		$this->verifierParametres($ressources, $parametres);
36
		$this->verifierParametres($ressources, $parametres);
Line 37... Line 37...
37
		$id_proposition = $ressources[1];
37
		$id_proposition = $ressources[1];
-
 
38
		
38
		
39
		$e = $this->modifierObservationParDetermination($id_proposition, $parametres['auteur.id']);
-
 
40
		if($e == 'ok' || $e == 'OK' || $e == 'Not Modified') {
39
		if(! ($e = $this->modifierObservationParDetermination($id_proposition, $parametres['auteur.id'])) ) {
41
			RestServeur::envoyerEnteteStatutHttp(RestServeur::HTTP_CODE_OK);
40
		  throw new Exception("error: Cel returned \"$e\"", RestServeur::HTTP_CODE_ERREUR);
42
			return;
41
		}
43
		}
Line 42... Line 44...
42
		RestServeur::envoyerEnteteStatutHttp(RestServeur::HTTP_CODE_OK);
44
		throw new Exception("error: Cel returned \"$e\"", RestServeur::HTTP_CODE_ERREUR);
43
	}
45
	}
44
	
46