mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°7720 - PHP 8.1: Fix usage of trim() with null parameter throwing deprecated notice during setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user