N°4517 - PHP 8.1: Fix deprecated notice for null value passed to string parameter of native PHP functions

This commit is contained in:
Molkobain
2023-02-24 21:30:21 +01:00
parent 5c9eb7fa38
commit 61bd8b6bb4
3 changed files with 3 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ class apcFile
*/
static public function GetCacheFileName($sKey = '')
{
$sPath = str_replace(array(' ', '/', '\\', '.'), '-', $sKey);
$sPath = str_replace(array(' ', '/', '\\', '.'), '-', $sKey ?? '');
return utils::GetCachePath().'apc-emul/'.$sPath;
}