diff --git a/library/Scores/IdentiteEntreprise.php b/library/Scores/IdentiteEntreprise.php index 262f6b70f..2f39acb9d 100644 --- a/library/Scores/IdentiteEntreprise.php +++ b/library/Scores/IdentiteEntreprise.php @@ -113,11 +113,15 @@ class IdentiteEntreprise } public function getCapitalisationTexte() { - $capitalisation = $this->identite->Bourse->capitalisation; - if ($this->identite->Isin == '' || intval($capitalisation) == 0) + if (!isset($this->identite->Bourse)) { + return false; + } + if ($this->identite->Isin == '') { return false; + } $date = new Zend_Date($this->identite->Bourse->derCoursDate, 'yyyy-MM-dd'); + $capitalisation = $this->identite->Bourse->capitalisation; return number_format($capitalisation, 0, '', ' ').' € au '.$date->toString('dd/MM/yyyy'); }