From bffbe18f8288e8ef1eaf8900be0d2036fa0ea071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 30 Nov 2023 17:44:45 +0100 Subject: [PATCH] fix hidden phpstan error (#26892) --- htdocs/install/upgrade2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index abaa9547a95..7549b97bd5d 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -1922,6 +1922,8 @@ function migrate_price_commande($db, $langs, $conf) */ function migrate_price_commande_fournisseur($db, $langs, $conf) { + global $mysoc; + $db->begin(); $tmpmysoc = new Societe($db);