Fix php8
This commit is contained in:
parent
1fbd4b1c2d
commit
9286f84b47
@ -744,6 +744,7 @@ abstract class CommonObject
|
|||||||
public function setUpperOrLowerCase()
|
public function setUpperOrLowerCase()
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_FIRST_TO_UPPER)) {
|
if (!empty($conf->global->MAIN_FIRST_TO_UPPER)) {
|
||||||
$this->lastname = dol_ucwords(dol_strtolower($this->lastname));
|
$this->lastname = dol_ucwords(dol_strtolower($this->lastname));
|
||||||
$this->firstname = dol_ucwords(dol_strtolower($this->firstname));
|
$this->firstname = dol_ucwords(dol_strtolower($this->firstname));
|
||||||
@ -759,9 +760,13 @@ abstract class CommonObject
|
|||||||
$this->address = dol_strtoupper($this->address);
|
$this->address = dol_strtoupper($this->address);
|
||||||
$this->town = dol_strtoupper($this->town);
|
$this->town = dol_strtoupper($this->town);
|
||||||
}
|
}
|
||||||
|
if (isset($this->email)) {
|
||||||
$this->email = dol_strtolower($this->email);
|
$this->email = dol_strtolower($this->email);
|
||||||
|
}
|
||||||
|
if (isset($this->personal_email)) {
|
||||||
$this->personal_email = dol_strtolower($this->personal_email);
|
$this->personal_email = dol_strtolower($this->personal_email);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return clicable link of object (with eventually picto)
|
* Return clicable link of object (with eventually picto)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user