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").'.';
|