Skip to content
Snippets Groups Projects
Verified Commit a1ba2c22 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix PHP warning

parent 2bac4ef4
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,9 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
class UploadController extends AbstractAjaxController {
public const JOB_APPLICATION_TEMP_FOLDER = 'temp';
/**
* @var mixed|string
*/
public $jobFolderPath = 'JobApplication';
/**
......@@ -141,7 +144,7 @@ class UploadController extends AbstractAjaxController {
$storage = $this->fileAndFolderService->getStorage();
$fileName = $storage->sanitizeFileName(
strtolower(
str_replace(' ', '_', trim($pathInfo['filename'] . '.' . strtolower($pathInfo['extension'])))
str_replace(' ', '_', trim($pathInfo['filename'] . '.' . strtolower($pathInfo['extension'] ?? '')))
)
);
// if the job application folder is not existing, create it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment