diff --git a/src/Core/TempFolder.php b/src/Core/TempFolder.php index 6ca00a48d..11a41c660 100644 --- a/src/Core/TempFolder.php +++ b/src/Core/TempFolder.php @@ -39,7 +39,7 @@ class TempFolder $user = ''; if (function_exists('posix_getpwuid') && function_exists('posix_getuid')) { $userDetails = posix_getpwuid(posix_getuid()); - $user = $userDetails['name']; + $user = $userDetails['name'] ?? false; } if (!$user) { $user = Environment::getEnv('APACHE_RUN_USER');