explicitly cast null string to empty string for PHP 8.1
This commit is contained in:
parent
e7fae2af25
commit
2374310056
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user