Reduce notice
This commit is contained in:
parent
47b413ee21
commit
7dd700c160
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user