From b072a02f660c03b43dbb5be1e5d1cc0afad2e1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 16 Nov 2021 00:19:13 +0100 Subject: [PATCH] fix warning --- htdocs/societe/ajax/company.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/ajax/company.php b/htdocs/societe/ajax/company.php index b2578ea6562..7edd00db4d5 100644 --- a/htdocs/societe/ajax/company.php +++ b/htdocs/societe/ajax/company.php @@ -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); }