50,12 → 50,8 |
|
$id_participant = $params['id_participant']; |
|
if(isset($params['station_code_insee']) && trim($params['station_code_insee']) != '') { |
|
if(isset($params['station_code_insee'])) { |
$commune = $params['station_code_insee']; |
if(strlen($commune) == 4) { |
$commune = '0'.$commune; |
} |
} else { |
$commune = $params['station_commune']; |
} |
65,7 → 61,7 |
'VALUES ('. |
$this->proteger($id_participant).','. |
$this->proteger($params['station_nom']).','. |
$this->proteger($commune).','. |
$commune.','. |
$this->proteger($params['station_lat']).','. |
$this->proteger($params['station_lon']).','. |
$this->proteger($params['station_alt']).','. |
110,12 → 106,8 |
$id_station = $uid[0];; |
} |
|
if(isset($params['station_code_insee']) && trim($params['station_code_insee']) != '') { |
|
if(isset($params['station_code_insee'])) { |
$commune = $params['station_code_insee']; |
if(strlen($commune) == 4) { |
$commune = '0'.$commune; |
} |
} else { |
$commune = $params['station_commune']; |
} |
123,7 → 115,7 |
$requete_modification_station = 'UPDATE ods_stations '. |
'SET '. |
'os_nom ='.$this->proteger($params['station_nom']).','. |
'os_ce_commune ='.$this->proteger($commune).','. |
'os_ce_commune ='.$commune.','. |
'os_latitude ='.$this->proteger($params['station_lat']).','. |
'os_longitude ='.$this->proteger($params['station_lon']).','. |
'os_altitude ='.$this->proteger($params['station_alt']).','. |