FIX: some more PHP8 comptability fixes

This commit is contained in:
Marc de Lima Lucio
2023-02-09 18:01:59 +01:00
parent 1e53f87d51
commit da0daa49da
2 changed files with 5 additions and 5 deletions

View File

@@ -496,6 +496,10 @@ class FormFile
$titletoshow = ($title == 'none' ? '' : $title);
}
$addcolumforpicto = ($delallowed || $printer || $morepicto);
$colspan = (4 + ($addcolumforpicto ? 1 : 0));
$colspanmore = 0;
// Show table
if ($genallowed) {
$modellist = array();
@@ -747,10 +751,6 @@ class FormFile
$out .= '<tr class="liste_titre">';
$addcolumforpicto = ($delallowed || $printer || $morepicto);
$colspan = (4 + ($addcolumforpicto ? 1 : 0));
$colspanmore = 0;
$out .= '<th colspan="'.$colspan.'" class="formdoc liste_titre maxwidthonsmartphone center">';
// Model