/trunk/jrest/services/CoelStructure.php |
---|
76,7 → 76,7 |
if(isset($p['id_structure'])) $whereClause[] = "cs_id_structure = {$p['id_structure']}"; |
if(isset($p['recherche'])) { |
if(@$this->searchCity && trim($this->searchCity) == true) { |
if(@$this->searchCity && trim($this->searchCity) == 'true') { |
$whereClause[] = "(" . implode(" OR ", array("cs_nom LIKE {$p['recherche']}", "cs_ville LIKE {$p['recherche']}")) . ")"; |
} else { |
$whereClause[] = "cs_nom LIKE {$p['recherche']}"; |