explicitly cast null string to empty string for PHP 8.1

This commit is contained in:
Michael Becker 2025-01-13 23:45:17 -05:00
parent e7fae2af25
commit 2374310056

View File

@ -406,7 +406,7 @@
{
$torepl = System::GetConfigurationValue("Application.BasePath");
$torepl_nontenanted = $torepl;
if (!$forceNonTenanted)
{
$tenantName = System::GetTenantName();
@ -416,6 +416,9 @@
}
}
if ($torepl_nontenanted === null) {
$torepl_nontenanted = "";
}
$retval_nontenanted = str_replace("~", $torepl_nontenanted, $path);
$physicalFilePath = System::GetApplicationPath() . $retval_nontenanted;
@ -425,6 +428,10 @@
}
else
{
if ($torepl === null)
{
$torepl = "";
}
$retval = str_replace("~~", $torepl_nontenanted, $path);
$retval = str_replace("~", $torepl, $retval);
}