Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

Ignore whitespace Rev 333 → Rev 334

/trunk/applications/jrest/services/OdsSyndicationObservation.php
213,6 → 213,7
'WHERE oo_ce_participant != '.$this->config['appli']['id_participant_demo'].' '.
'AND oo_ce_participant != '.$this->config['appli']['id_participant_admin'].' '.
'AND DAY(oo_date) != "00" '.
'AND oo_absence_evenement = "0" '.
'ORDER BY '.$this->tri.' '.$this->tri_dir.' '.
"LIMIT $this->start,$this->limit ";
 
400,7 → 401,11
'WHERE oc_code_insee = '.$this->proteger($commune);
 
$resultat_lieu = $this->executerRequete($requete_lieu);
$lieu = $resultat_lieu[0]['oc_nom']. ' ('.substr($commune,0,2).')';
if(!empty($resultat_lieu)) {
$lieu = $resultat_lieu[0]['oc_nom']. ' ('.substr($commune,0,2).')';
} else {
$lieu = $commune;
}
} else {
$lieu = $commune;
}