Fix php8.1
This commit is contained in:
parent
98b686b531
commit
b1d762eb18
@ -4318,8 +4318,10 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm' || $massaction =
|
||||
$massactionbutton .= '</div>';
|
||||
|
||||
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
||||
//$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
|
||||
$selectedfields .= $form->showCheckAddButtons('checkforselect', 1);
|
||||
|
||||
//$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')); // This also change content of $arrayfields
|
||||
$selectedfields = '';
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print_barre_liste($langs->trans("Results"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'generic', 0, '', '', $limit, 1, 1, 1);
|
||||
|
||||
@ -4369,7 +4371,7 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm' || $massaction =
|
||||
$totalnbwords = 0;
|
||||
|
||||
foreach ($listofpages['list'] as $answerrecord) {
|
||||
if (get_class($answerrecord) == 'WebsitePage') {
|
||||
if (is_object($answerrecord) && get_class($answerrecord) == 'WebsitePage') {
|
||||
print '<tr>';
|
||||
|
||||
// Type of container
|
||||
|
||||
Loading…
Reference in New Issue
Block a user