Fix "Call to a member function rowCount()" mais pas la cause
This commit is contained in:
parent
0fd0b918d0
commit
60f238563d
@ -5591,11 +5591,6 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
|
||||
try {
|
||||
$stmt = $this->conn->executeQuery($sql);
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
if ($this->logger !== null) {
|
||||
$this->logger->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// --- Traitement des resultats
|
||||
if ($stmt->rowCount() > 0) {
|
||||
@ -5856,7 +5851,6 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
$ann['ville'] = $this->Identite['Ville'];
|
||||
}
|
||||
$adresse.= ucfirst(strtolower($ann['adresse'])).', ';
|
||||
|
||||
$adresse = trim(preg_replace('/^0+/', '', preg_replace('/ +/', ' ', $adresse)));
|
||||
if (preg_match('/(3100|3200|3300|3999)/', $ann['typeEven'].';'.$ann['strEven'])) {
|
||||
$depotComptes = true;
|
||||
@ -5865,8 +5859,10 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
$strRCS = $ann['siren'] . ' RCS '. ucfirst(strtolower(strtr($ann['triNom'], array('TGIcc '=>'', 'TGI '=>'', 'TC '=>'', 'TI '=>'', )))).'. ';
|
||||
}
|
||||
|
||||
$texteAnnonce = 'Date : '.strtolower(Metier_Util_Date::dateT('Y-m-d', 'd M Y', $ann['dateJugement'])) .'. '. $this->iBodacc->getEvenement($ann['typeEven']).'. '.
|
||||
$strRCS . trim($ann['raisonSociale']). '. Adresse : '. $adresse.' '.$ann['codePostal'].' '.$ann['ville'].'. ';
|
||||
$texteAnnonce = 'Date : '.strtolower(Metier_Util_Date::dateT('Y-m-d', 'd M Y', $ann['dateJugement'])).'. '.
|
||||
$this->iBodacc->getEvenement($ann['typeEven']).'. '.
|
||||
$strRCS . trim($ann['raisonSociale']).'. Adresse : '.
|
||||
$adresse.' '.$ann['codePostal'].' '.$ann['ville'].'. ';
|
||||
|
||||
if (trim($ann['numero']) != '') {
|
||||
$texteAnnonce.='Jugement Numéro : '.trim($ann['numero']).'. ';
|
||||
@ -5881,9 +5877,9 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
&& ($ann['inter'.$mandNum.'id']>0 || trim($ann['inter'.$mandNum.'nom']) != '')) {
|
||||
$texteAnnonce.= $tabInter[$ann['inter'.$mandNum.'type']].' : '.$ann['inter'.$mandNum.'nom'];
|
||||
if ($ann['inter'.$mandNum.'id'] != 0) {
|
||||
$mandStmt = $this->conn->executeQuery("SELECT sirenGrp, sirenMand,
|
||||
tel, fax, email FROM jo.tabMandataires
|
||||
WHERE id=".$ann['inter'.$mandNum.'id']);
|
||||
$mandStmt = $this->conn->executeQuery(
|
||||
"SELECT sirenGrp, sirenMand, tel, fax, email
|
||||
FROM jo.tabMandataires WHERE id=".$ann['inter'.$mandNum.'id']);
|
||||
$mand = $mandStmt->fetch(\PDO::FETCH_ASSOC);
|
||||
if ($mand['sirenGrp'] != 0) {
|
||||
$texteAnnonce.= ', Siren SCP '.$mand['sirenGrp'];
|
||||
@ -6045,6 +6041,11 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
if ($this->logger !== null) {
|
||||
$this->logger->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
return $tabRet;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user