mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°4517 - PHP 8.1 compatibility: Fix deprecated call str_replace with null value
This commit is contained in:
@@ -4231,8 +4231,9 @@ class AttributeText extends AttributeString
|
||||
{
|
||||
$sValue = $proposedValue;
|
||||
|
||||
// N°4517 - PHP 8.1 compatibility: str_replace call with null cause deprecated message
|
||||
if ($sValue == null) {
|
||||
return null;
|
||||
return '';
|
||||
}
|
||||
|
||||
switch ($this->GetFormat()) {
|
||||
|
||||
Reference in New Issue
Block a user