MMap : Catch update error

This commit is contained in:
Michael RICOIS 2017-02-16 14:06:01 +01:00
parent dd7865f43f
commit 185ffc7f69

View File

@ -513,11 +513,13 @@ class Metier_Partenaires_MMap
'l93_x'=>$this->l93x,
'l93_y'=>$this->l93y
);
$this->conn->update('jo.zonageXY', $tabUpdate, array(
'address' => $adresse,
'adr_cp' => $cp,
'adr_ville' => $ville,
));
try {
$this->conn->update('jo.zonageXY', $tabUpdate, array(
'address' => $adresse,
'adr_cp' => $cp,
'adr_ville' => $ville,
));
} catch (\Doctrine\DBAL\DBALException $e) {}
}
$this->latitudeDeg = dec2dms($this->latitudeDec);