N°7720 - PHP 8.1: Fix usage of trim() with null parameter throwing deprecated notice during setup

This commit is contained in:
Molkobain
2024-07-30 16:59:32 +02:00
parent af9b03cfa5
commit 10c3641307

View File

@@ -200,7 +200,7 @@ abstract class TriggerOnObject extends Trigger
{
parent::DoCheckToWrite();
$sFilter = trim($this->Get('filter'));
$sFilter = trim($this->Get('filter') ?? '');
if (strlen($sFilter) > 0)
{
try