2
0
forked from Wavyzz/dolibarr

Merge pull request #25002 from Hystepik/develop#3

fix php 8.1 warnings with strict  mode
This commit is contained in:
Laurent Destailleur
2023-06-09 01:12:02 +02:00
committed by GitHub
7 changed files with 9 additions and 8 deletions

View File

@@ -6817,7 +6817,7 @@ function yn($yesno, $case = 1, $color = 0)
$result = 'unknown';
$classname = '';
if ($yesno == 1 || strtolower($yesno) == 'yes' || strtolower($yesno) == 'true') { // A mettre avant test sur no a cause du == 0
if ($yesno == 1 || (isset($yesno) && (strtolower($yesno) == 'yes' || strtolower($yesno) == 'true'))) { // A mettre avant test sur no a cause du == 0
$result = $langs->trans('yes');
if ($case == 1 || $case == 3) {
$result = $langs->trans("Yes");