Fix: Ensure string type for urlencode()

This commit is contained in:
MDW 2024-03-08 02:53:15 +01:00
parent b0480f82fb
commit 6cb026ef8c
No known key found for this signature in database

View File

@ -266,10 +266,10 @@ if ($id > 0 || !empty($ref)) {
$option .= '&limit='.((int) $limit);
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
$option .= '&search_month='.urlencode((string) ($search_month));
}
if (!empty($search_year)) {
$option .= '&search_year='.urlencode($search_year);
$option .= '&search_year='.urlencode((string) ($search_year));
}
print '<form method="post" action="'.$_SERVER ['PHP_SELF'].'?id='.$object->id.'" name="search_form">'."\n";
@ -285,7 +285,7 @@ if ($id > 0 || !empty($ref)) {
print_barre_liste($langs->trans("Receptions"), $page, $_SERVER["PHP_SELF"], $option, $sortfield, $sortorder, '', $num, $totalofrecords, '', 0, '', '', $limit, 0, 0, 1);
if (!empty($page)) {
$option .= '&page='.urlencode($page);
$option .= '&page='.urlencode((string) ($page));
}
print '<div class="liste_titre liste_titre_bydiv centpercent">';