Update originproductline.tpl.php (#27944)

* Update originproductline.tpl.php

Fix unset $form on OF creation causing a fatal error when using $form->textwithpicto()

* Update originproductline.tpl.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Quentin-Seekness 2024-02-01 13:38:37 +01:00 committed by GitHub
parent b514c1afbe
commit f184caec73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ if (empty($conf) || !is_object($conf)) {
global $db, $langs;
if (!empty($form) && !is_object($form)) {
if (empty($form) || !is_object($form))) {
$form = new Form($db);
}