Fabric gamma2 joomla 4.2.8 Deprecated: str_replace(): error

Vpois

New Member
An error occurs when opening the form:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in ...\components\com_fabrik\models\element.php on line 7121
I added the code (bold, italic) and the error disappeared . Is this correct?

if ($thousandSep == '#32')
{
$thousandSep = ' ';
}
else if ($thousandSep == '#00')
{
$thousandSep = '';
}
if ($val== Null)
{
$val = ' ';
}


2021 $val = str_replace($thousandSep, '', $val);


 
I can't see how you can get a null value at this point.
But if - just return the value, don't change it.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top