From 55c33edeec02bcc9fbb0724ccd5d146cedd270d4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 Feb 2026 02:16:24 +0100 Subject: [PATCH] Check if upload_max_filesize is not empty --- htdocs/admin/security_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/security_file.php b/htdocs/admin/security_file.php index ded39c4b32e..d9953964f72 100644 --- a/htdocs/admin/security_file.php +++ b/htdocs/admin/security_file.php @@ -187,7 +187,7 @@ print ''; print ''; print ''.$langs->trans("MaxSizeForUploadedFiles").'.'; $max = @ini_get('upload_max_filesize'); -if (isset($max)) { +if (!empty($max)) { print '
'.$langs->trans("MustBeLowerThanPHPLimit", ((int) $max) * 1024, $langs->trans("Kb")).'.'; } else { print ' '.$langs->trans("NoMaxSizeByPHPLimit").'.';