explicitly cast null string to empty string for PHP 8.1
This commit is contained in:
parent
e7fae2af25
commit
2374310056
@ -406,7 +406,7 @@
|
|||||||
{
|
{
|
||||||
$torepl = System::GetConfigurationValue("Application.BasePath");
|
$torepl = System::GetConfigurationValue("Application.BasePath");
|
||||||
$torepl_nontenanted = $torepl;
|
$torepl_nontenanted = $torepl;
|
||||||
|
|
||||||
if (!$forceNonTenanted)
|
if (!$forceNonTenanted)
|
||||||
{
|
{
|
||||||
$tenantName = System::GetTenantName();
|
$tenantName = System::GetTenantName();
|
||||||
@ -416,6 +416,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($torepl_nontenanted === null) {
|
||||||
|
$torepl_nontenanted = "";
|
||||||
|
}
|
||||||
$retval_nontenanted = str_replace("~", $torepl_nontenanted, $path);
|
$retval_nontenanted = str_replace("~", $torepl_nontenanted, $path);
|
||||||
$physicalFilePath = System::GetApplicationPath() . $retval_nontenanted;
|
$physicalFilePath = System::GetApplicationPath() . $retval_nontenanted;
|
||||||
|
|
||||||
@ -425,6 +428,10 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ($torepl === null)
|
||||||
|
{
|
||||||
|
$torepl = "";
|
||||||
|
}
|
||||||
$retval = str_replace("~~", $torepl_nontenanted, $path);
|
$retval = str_replace("~~", $torepl_nontenanted, $path);
|
||||||
$retval = str_replace("~", $torepl, $retval);
|
$retval = str_replace("~", $torepl, $retval);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user