mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01: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