diff --git a/library/WsScore/Entreprise/v0.5/Entreprise.php b/library/WsScore/Entreprise/v0.5/Entreprise.php index 4a709d5c..7ed1b95b 100644 --- a/library/WsScore/Entreprise/v0.5/Entreprise.php +++ b/library/WsScore/Entreprise/v0.5/Entreprise.php @@ -55,7 +55,7 @@ class Entreprise extends WsScore $fp = fopen(LOG_PATH.'/accesDistant.log', 'a'); fwrite($fp,$ligne.EOL); fclose($fp); - if (empty($entrep)) { + if (empty($entrep) || empty($entrep['id']) ) { debugLog('W', "Siren $siren non présent en base", __LINE__, __FILE__, __FUNCTION__, __CLASS__); $this->sendError('1020'); }