Subversion Repositories eFlore/Applications.del

Rev

Rev 1946 | Rev 1951 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1946 Rev 1947
Line 81... Line 81...
81
				if(count($noms_possibles) == 1) {
81
				if(count($noms_possibles) == 1) {
82
					$nom_dans_ref = reset($noms_possibles);
82
					$nom_dans_ref = reset($noms_possibles);
83
					$nom_referentiel = key($noms_possibles);
83
					$nom_referentiel = key($noms_possibles);
84
					// Un seul nom trouvé
84
					// Un seul nom trouvé
85
					if(count($nom_dans_ref) == 1) {
85
					if(count($nom_dans_ref) == 1) {
-
 
86
						if(isset($nom_dans_ref['num_nom'])) {
86
						$this->mettreAjourProposition($prop['id_commentaire'], $nom_referentiel, $nom_dans_ref);
87
							$this->mettreAjourProposition($prop['id_commentaire'], $nom_referentiel, $nom_dans_ref);
87
						$nb_prop_augmentees ++;
88
							$nb_prop_augmentees ++;
88
					}
89
						}
89
				}
90
					}
-
 
91
				}
90
			} else {
92
			} else {
91
				$noms_possibles = $this->rechercherNomsPossibles($referentiel, $prop['nom_sel']);
93
				$noms_possibles = $this->rechercherNomsPossibles($referentiel, $prop['nom_sel']);
92
				$noms_ordonnes[$prop['id_commentaire']]['nom_trouves'] = $noms_possibles;
94
				$noms_ordonnes[$prop['id_commentaire']]['nom_trouves'] = $noms_possibles;
93
				$nb_noms_trouves += count($noms_possibles);
95
				$nb_noms_trouves += count($noms_possibles);
94
				$nb_prop_inchangees += empty($noms_possibles) ? 1 : 0;
96
				$nb_prop_inchangees += empty($noms_possibles) ? 1 : 0;