2
0
forked from Wavyzz/dolibarr

Merge pull request #22968 from Hystepik/develop#3

fix : php 8.1 warnings
This commit is contained in:
Laurent Destailleur
2022-11-25 16:28:14 +01:00
committed by GitHub
25 changed files with 65 additions and 54 deletions

View File

@@ -2297,11 +2297,13 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
$tmptxt = $object->getLibStatut(5);
$morehtmlstatus .= $tmptxt; // No status on task
} else { // Generic case
$tmptxt = $object->getLibStatut(6);
if (empty($tmptxt) || $tmptxt == $object->getLibStatut(3)) {
$tmptxt = $object->getLibStatut(5);
if (isset($object->status)) {
$tmptxt = $object->getLibStatut(6);
if (empty($tmptxt) || $tmptxt == $object->getLibStatut(3)) {
$tmptxt = $object->getLibStatut(5);
}
$morehtmlstatus .= $tmptxt;
}
$morehtmlstatus .= $tmptxt;
}
// Add if object was dispatched "into accountancy"