fix: declare entity before using it

This commit is contained in:
Benoît PASCAL 2024-11-16 17:32:30 +01:00
parent 0bac63ffbc
commit bcf7031a04

View File

@ -59,6 +59,7 @@ if ($mode == 'searchkey') {
$transvalue = GETPOST('transvalue', 'restricthtml');
}
$entity = $conf->entity;
if (isModEnabled('multicompany') && !$user->entity) {
$entity = GETPOST('entity', 'int');
}