Erreur soap sur siren inexistant

This commit is contained in:
Michael RICOIS 2011-12-16 13:09:59 +00:00
parent b8dd4c7504
commit ec6611a0e7

View File

@ -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');
}