Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1582 Rev 1631
Line 29... Line 29...
29
		$retour = false;
29
		$retour = false;
30
		$idObs = $ressources[0];
30
		$idObs = $ressources[0];
31
		if (isset($idObs) && preg_match('/^[0-9]+$/', $idObs)) {
31
		if (isset($idObs) && preg_match('/^[0-9]+$/', $idObs)) {
Line 32... Line 32...
32
 
32
 
33
			$criteres = array('id_observation' => $idObs, 'transmission' => 1);
33
			$criteres = array('id_observation' => $idObs, 'transmission' => 1);
Line 34... Line 34...
34
			$obsTrouvee = $this->rechercheObs->rechercherObservations(null, $criteres, 0, 1);
34
			$obsTrouvee = $this->rechercheObs->rechercherObservations(null, $criteres, 0, 1)->get();
35
 
35
 
36
			$observation = array();
36
			$observation = array();
37
			if (is_array($obsTrouvee) && count($obsTrouvee) > 0) {
37
			if (is_array($obsTrouvee) && count($obsTrouvee) > 0) {