Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 1105 → Rev 1106

/trunk/services/modules/0.1/chorodep/Noms.php
149,6 → 149,9
protected function construireWhere() {
$where = "";
$conditions = array();
// élimination des entrées sans nn valide
$conditions[] = "CAST(num_nom AS decimal) != 0";
// masque
if(!empty($this->masque)) {
if(isset($this->masque['nom'])) {
$masqueNom = $this->getBdd()->proteger($this->masque['nom']);
158,8 → 161,8
$masqueZg = $this->masque['zone-geo'];
$conditions[] = "`$masqueZg` in ('1', '1?')";
}
$where = " WHERE ".implode(' AND ', $conditions);
}
$where = " WHERE " . implode(' AND ', $conditions);
return $where;
}
}