mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 10:22:37 +01:00
FIX: some more PHP8 comptability fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1059,7 +1059,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
||||
$ret = $actioncomm->create($user); // User creating action
|
||||
|
||||
if ($ret > 0 && !empty($conf->global->MAIN_COPY_FILE_IN_EVENT_AUTO)) {
|
||||
if (is_array($object->attachedfiles) && array_key_exists('paths', $object->attachedfiles) && count($object->attachedfiles['paths']) > 0) {
|
||||
if (property_exists($object, 'attachedfiles') && is_array($object->attachedfiles) && array_key_exists('paths', $object->attachedfiles) && count($object->attachedfiles['paths']) > 0) {
|
||||
foreach ($object->attachedfiles['paths'] as $key => $filespath) {
|
||||
$srcfile = $filespath;
|
||||
$destdir = $conf->agenda->dir_output.'/'.$ret;
|
||||
|
||||
Reference in New Issue
Block a user