mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 18:48:22 +01:00
fix php8 warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user