From 99f75111cee7736e82c178177d58d07e6b816963 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 16 Aug 2022 19:03:30 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1:=20Fix=20str=5Frepl?= =?UTF-8?q?ace()=20called=20with=20null=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/metamodel.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index a435576f65..b8705ea4cc 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -467,7 +467,7 @@ abstract class MetaModel 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 != '')) { $sIcon = ""; }