We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad5d6da commit 4a9302fCopy full SHA for 4a9302f
src/Controller/Admin/IndexController.php
@@ -313,7 +313,7 @@ protected function addSystemVarSettings(array &$settings): static
313
// upload limit
314
$max_upload = filesize2bytes(ini_get('upload_max_filesize') . 'B');
315
$max_post = filesize2bytes(ini_get('post_max_size') . 'B');
316
- $upload_mb = min($max_upload, $max_post);
+ $upload_mb = min($max_upload, $max_post) ?: $max_upload;
317
318
$settings['upload_max_filesize'] = (int) $upload_mb;
319
0 commit comments