N°6498 - Fix str_replace crashing with null value

This commit is contained in:
Stephen Abello
2023-07-05 09:18:44 +02:00
parent 722a4a2c4d
commit 3e187282b0

View File

@@ -2047,6 +2047,9 @@ SQL;
*/
public static function TextToHtml($sText)
{
if (static::IsNullOrEmptyString($sText)){
return '';
}
$sText = str_replace("\r\n", "\n", $sText);
$sText = str_replace("\r", "\n", $sText);