This commit is contained in:
Michael RICOIS 2017-02-01 13:28:13 +01:00
parent 63cac55c42
commit ce921c949d

View File

@ -109,13 +109,17 @@ class Saisie extends Scores_Ws_Server
try {
$isInserted = $db->insert('jo.infos_entrep', array_merge(array('siren'=>$siren), $tabUpdate));
} catch(Zend_Db_Exception $e) {
file_put_contents('insert.log', "INSERT = ".$e->getMessage());
if ($this->logger !== null) {
$this->logger->error($e->getMessage());
}
}
} else {
try {
$isUpdated = $db->update('jo.infos_entrep', $tabUpdate, "siren=$siren");
} catch(Zend_Db_Exception $e) {
file_put_contents('update.log', "INSERT = ".$e->getMessage());
if ($this->logger !== null) {
$this->logger->error($e->getMessage());
}
}
}
// Fin mise à jour identité