mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 16:42:53 +01:00
Fix php8.2 warnings
This commit is contained in:
@@ -46,14 +46,14 @@ function reception_prepare_head(Reception $object)
|
||||
$head[$h][2] = 'reception';
|
||||
$h++;
|
||||
|
||||
if ($object->statut == Reception::STATUS_DRAFT || ($object->statut == Reception::STATUS_VALIDATED && empty($conf->global->STOCK_CALCULATE_ON_RECEPTION))) {
|
||||
if ($object->statut == Reception::STATUS_DRAFT || ($object->statut == Reception::STATUS_VALIDATED && !getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION'))) {
|
||||
$head[$h][0] = DOL_URL_ROOT."/reception/dispatch.php?id=".$object->id;
|
||||
$head[$h][1] = $langs->trans("ReceptionDistribution");
|
||||
$head[$h][2] = 'dispatch';
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB)) {
|
||||
if (!getDolGlobalString('MAIN_DISABLE_CONTACTS_TAB')) {
|
||||
$objectsrc = $object;
|
||||
if ($object->origin == 'supplier_order' && $object->origin_id > 0) {
|
||||
$objectsrc = new CommandeFournisseur($db);
|
||||
@@ -134,7 +134,7 @@ function reception_admin_prepare_head()
|
||||
|
||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'reception_admin');
|
||||
|
||||
if (!empty($conf->global->MAIN_SUBMODULE_RECEPTION)) {
|
||||
if (getDolGlobalString('MAIN_SUBMODULE_RECEPTION')) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/admin/reception_extrafields.php';
|
||||
$head[$h][1] = $langs->trans("ExtraFields");
|
||||
$nbExtrafields = $extrafields->attributes['reception']['count'];
|
||||
@@ -145,7 +145,7 @@ function reception_admin_prepare_head()
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (!empty($conf->global->MAIN_SUBMODULE_RECEPTION)) {
|
||||
if (getDolGlobalString('MAIN_SUBMODULE_RECEPTION')) {
|
||||
$head[$h][0] = DOL_URL_ROOT.'/admin/commande_fournisseur_dispatch_extrafields.php';
|
||||
$head[$h][1] = $langs->trans("ExtraFieldsLines");
|
||||
$nbExtrafields = $extrafields->attributes['commande_fournisseur_dispatch']['count'];
|
||||
|
||||
Reference in New Issue
Block a user