Skip to content

Commit

Permalink
[BUGFIX] Allow to create folders with name "0"
Browse files Browse the repository at this point in the history
Resolves: #102192
Releases: main, 12.4, 11.5
Change-Id: I0cc48e27d32b6d6164d9d580121968610a9333b9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81655
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
justusmoroni authored and bmack committed Nov 5, 2023
1 parent b5fe05c commit f6fe266
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function processData()
// Check if there were new folder names expected, but non given
if ($this->fileCmdMap['newfolder'] ?? false) {
foreach ($this->fileCmdMap['newfolder'] as $key => $cmdArr) {
if (empty($cmdArr['data'])) {
if ((string)($cmdArr['data'] ?? '') === '') {
unset($this->fileCmdMap['newfolder'][$key]);
}
}
Expand Down

0 comments on commit f6fe266

Please sign in to comment.