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); }