From f9f15a75d6d38189974ff3cbb3affbfa92189c3b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 May 2025 16:31:51 +0200 Subject: [PATCH] Fix CI --- htdocs/core/class/html.form.class.php | 4 ++-- htdocs/core/tpl/ajaxrow.tpl.php | 2 +- htdocs/stripe/transaction.php | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8b11f5ff4ce..0f5ac05651a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5715,7 +5715,7 @@ class Form }'; } - print $out; + return $out; } @@ -9880,7 +9880,7 @@ class Form $arrayselected = array(); $cate_arbo = $this->select_all_categories($type, '', 'parent', 64, 0, 3); foreach ($categories as $c) { - $arrayselected[] = $c->id; + $arrayselected[(string) $c->id] = (string) $c->id; } return $this->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, '', 0, '100%', 'disabled', 'category'); diff --git a/htdocs/core/tpl/ajaxrow.tpl.php b/htdocs/core/tpl/ajaxrow.tpl.php index f6111c271a5..12727d260ef 100644 --- a/htdocs/core/tpl/ajaxrow.tpl.php +++ b/htdocs/core/tpl/ajaxrow.tpl.php @@ -37,7 +37,7 @@ * @var ?int $nboflines * @var ?string $tagidfortablednd * @var ?string $table_element_line - * @var ?array $tasksarray + * @var ?Task[] $tasksarray * @var ?string $urltorefreshaftermove */ // Protection to avoid direct call of template diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php index 42f1917afeb..6fd8495b2ae 100644 --- a/htdocs/stripe/transaction.php +++ b/htdocs/stripe/transaction.php @@ -72,7 +72,6 @@ $result = restrictedArea($user, 'banque'); * View */ -$form = new Form($db); $stripe = new Stripe($db); llxHeader('', $langs->trans("StripeTransactionList")); @@ -111,7 +110,7 @@ if (!$rowid) { $moreforfilter = ''; print '
'; - print ''."\n"; + print '
'."\n"; print ''; print_liste_field_titre("Ref", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);