fix php8 warning

This commit is contained in:
Frédéric FRANCE
2021-03-15 13:51:54 +01:00
committed by GitHub
parent 967be12491
commit d4eecf3eb2

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;
}