2
0
forked from Wavyzz/dolibarr

php 8 warning

This commit is contained in:
Braito
2022-12-20 10:13:47 +01:00
committed by GitHub
parent f1d83b695a
commit 55b51b94f1

View File

@@ -489,11 +489,11 @@ llxHeader("", $title, $help_url);
$titleboth = $langs->trans("LeadsOrProjects"); $titleboth = $langs->trans("LeadsOrProjects");
$titlenew = $langs->trans("NewLeadOrProject"); // Leads and opportunities by default $titlenew = $langs->trans("NewLeadOrProject"); // Leads and opportunities by default
if (empty($conf->global->PROJECT_USE_OPPORTUNITIES)) { if (!getDolGlobalInt('PROJECT_USE_OPPORTUNITIES')) {
$titleboth = $langs->trans("Projects"); $titleboth = $langs->trans("Projects");
$titlenew = $langs->trans("NewProject"); $titlenew = $langs->trans("NewProject");
} }
if ($conf->global->PROJECT_USE_OPPORTUNITIES == 2) { // 2 = leads only if (isset($conf->global->PROJECT_USE_OPPORTUNITIES) && $conf->global->PROJECT_USE_OPPORTUNITIES == 2) { // 2 = leads only
$titleboth = $langs->trans("Leads"); $titleboth = $langs->trans("Leads");
$titlenew = $langs->trans("NewLead"); $titlenew = $langs->trans("NewLead");
} }