Update html.formfile.class.php

This commit is contained in:
Laurent Destailleur 2019-02-27 13:26:37 +01:00 committed by GitHub
parent d1716babef
commit f2dc687202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,13 @@ class FormFile
if ($savingdocmask)
{
//add a global variable for disable the auto renaming on upload
if($conf->global->MAIN_DOC_UPLOAD_NOT_RENAME_BY_DEFAULT==1){$rename='';}else{$rename='checked';}
if (! empty($conf->global->MAIN_DOC_UPLOAD_NOT_RENAME_BY_DEFAULT))
{
$rename='';
}
else {
$rename='checked';
}
$out .= '<tr>';
if (! empty($options)) $out .= '<td>'.$options.'</td>';