fix warning

This commit is contained in:
Frédéric FRANCE 2021-06-10 20:40:10 +02:00 committed by GitHub
parent 77efbda148
commit 3cb17d7535
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);
}