Merge pull request #17880 from frederic34/patch-8

fix warning
This commit is contained in:
Laurent Destailleur 2021-06-11 18:02:45 +02:00 committed by GitHub
commit ffb879d152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ if (!isset($savingdocmask) || !empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_
}
}
if (!is_object($formfile)) {
if (empty($formfile) || !is_object($formfile)) {
$formfile = new FormFile($db);
}