Compatibility PHP 5.3

This commit is contained in:
Michael RICOIS 2015-06-12 12:54:55 +00:00
parent c9283be530
commit 9fc9b4a1f5

View File

@ -91,14 +91,14 @@ class Scores_Session_Entreprise
{ {
$adresse = $this->get('Adresse'); $adresse = $this->get('Adresse');
if (!empty($this->get('Adresse2'))) { if ( $this->get('Adresse2') != '' ) {
$adresse.= ' '.$this->get('Adresse2'); $adresse.= ' '.$this->get('Adresse2');
} }
if (intval($this->identite->CP)!=0) { if ( intval($this->identite->CP) != 0 ) {
$adresse.= ' '.$this->get('CP'); $adresse.= ' '.$this->get('CP');
} }
$adresse.= ' '.$this->get('Ville'); $adresse.= ' '.$this->get('Ville');
if ($this->get('Pays')!='' && strtoupper(substr($this->get('Pays'),0,3))!='FRA') { if ( $this->get('Pays') != '' && strtoupper(substr($this->get('Pays'),0,3)) != 'FRA') {
$adresse.= ', '.$this->get('Pays'); $adresse.= ', '.$this->get('Pays');
} }