Merge pull request #16684 from frederic34/patch-3

fix php8 warning
This commit is contained in:
Laurent Destailleur 2021-03-15 17:14:42 +01:00 committed by GitHub
commit 1e323b302e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1699,7 +1699,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
$maxvisiblephotos = 1;
$showimage = 1;
$entity = (empty($object->entity) ? $conf->entity : $object->entity);
$showbarcode = empty($conf->barcode->enabled) ? 0 : ($object->barcode ? 1 : 0);
$showbarcode = empty($conf->barcode->enabled) ? 0 : (empty($object->barcode) ? 0 : 1);
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->barcode->lire_advance)) {
$showbarcode = 0;
}