From 8c27476d2ad76165e0227c23dfa4adae50bb6192 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 28 Jul 2022 11:39:39 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1:=20Fix=20trim()=20c?= =?UTF-8?q?alled=20with=20null=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/compiler.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index dc3f88392..c5765a6fe 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -3000,7 +3000,7 @@ EOF; */ protected function CompileLogo($oBrandingNode, $sTempTargetDir, $sFinalTargetDir, $sNodeName, $sTargetFile) { - $sIcon = trim($oBrandingNode->GetChildText($sNodeName)); + $sIcon = trim($oBrandingNode->GetChildText($sNodeName) ?? ''); if (strlen($sIcon) > 0) { $sSourceFile = $sTempTargetDir.'/'.$sIcon; $aIconName=explode(".", $sIcon); @@ -3635,7 +3635,7 @@ EOF; { @unlink($sFilename); } - $ret = file_put_contents($sFilename, $sContent, $flags); + $ret = file_put_contents($sFilename, $sContent, $flags ?? 0); if ($ret === false) { $iLen = strlen($sContent);