Subversion Repositories eFlore/Applications.coel

Compare Revisions

Regard whitespace Rev 1710 → Rev 1711

/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']}";