mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Fix: Ensure string type for urlencode()
This commit is contained in:
@@ -179,7 +179,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$option .= '&search_month='.urlencode($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='.$product->id.'" name="search_form">'."\n";
|
||||
@@ -195,7 +195,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_barre_liste($langs->trans("Contrats"), $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));
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
|
||||
Reference in New Issue
Block a user