Merge pull request #19386 from frederic34/patch-1

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

View File

@ -114,7 +114,7 @@ if (!empty($action) && $action == 'fetch' && !empty($id)) {
return;
}
if (!is_object($form)) {
if (empty($form) || !is_object($form)) {
$form = new Form($db);
}