Check if upload_max_filesize is not empty
This commit is contained in:
parent
602bcc5361
commit
55c33edeec
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ print '</tr>';
|
|||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("MaxSizeForUploadedFiles").'.';
|
||||
$max = @ini_get('upload_max_filesize');
|
||||
if (isset($max)) {
|
||||
if (!empty($max)) {
|
||||
print '<br><span class="opacitymedium">'.$langs->trans("MustBeLowerThanPHPLimit", ((int) $max) * 1024, $langs->trans("Kb")).'.</span>';
|
||||
} else {
|
||||
print ' '.$langs->trans("NoMaxSizeByPHPLimit").'.';
|
||||
|
|
|
|||
Loading…
Reference in a new issue