mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
N°4517 - PHP 8.1: Fix str_replace() called with null value
This commit is contained in:
@@ -467,7 +467,7 @@ abstract class MetaModel
|
|||||||
return self::GetClassIcon($sParentClass, $bImgTag, $sMoreStyles);
|
return self::GetClassIcon($sParentClass, $bImgTag, $sMoreStyles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sIcon = str_replace('/modules/', '/env-'.self::$m_sEnvironment.'/', $sIcon); // Support of pre-2.0 modules
|
$sIcon = str_replace('/modules/', '/env-'.self::$m_sEnvironment.'/', $sIcon ?? ''); // Support of pre-2.0 modules
|
||||||
if ($bImgTag && ($sIcon != '')) {
|
if ($bImgTag && ($sIcon != '')) {
|
||||||
$sIcon = "<img src=\"$sIcon\" style=\"vertical-align:middle;$sMoreStyles\"/>";
|
$sIcon = "<img src=\"$sIcon\" style=\"vertical-align:middle;$sMoreStyles\"/>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user