Merge pull request #25115 from grandoc/new_branch_15_06_23

Fix : Warning: Undefined array key -1 in /home/httpd/vhosts/doliweb.com/htt…
This commit is contained in:
Laurent Destailleur 2023-06-16 00:08:47 +02:00 committed by GitHub
commit 8fa4f4eb9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
$labelStatus = $langs->transnoentitiesnoconv("OppStatus".$code).' ('.$langs->transnoentitiesnoconv("NotClosedYet").")";
}
}
if (empty($labelStatus)) {
if (empty($labelStatus) && isset($listofopplabel[$status])) {
$labelStatus = $listofopplabel[$status];
}
if (empty($labelStatus)) {