fix regression: use $hookmanager as a global variable to avoid errors on thirdparty page.

This commit is contained in:
Thomas Negre 2022-04-04 09:47:34 +02:00
parent d0ed15ce5c
commit a913bf3875

View File

@ -41,7 +41,7 @@
*/ */
function societe_prepare_head(Societe $object) function societe_prepare_head(Societe $object)
{ {
global $db, $langs, $conf, $user; global $db, $langs, $conf, $user, $hookmanager;
$h = 0; $h = 0;
$head = array(); $head = array();