aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
index 60445b4b117..f8f19a61993 100644
--- a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
+++ b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php
@@ -73,7 +73,7 @@ class GenerateMimetypeFileBuilder {
$namesOutput = '';
foreach ($names as $key => $name) {
- if (str_starts_with($key, '_')) {
+ if (str_starts_with($key, '_') || trim($name) === '') {
// Skip internal names
continue;
}