mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Ensure string type for urlencode()
This commit is contained in:
parent
b0480f82fb
commit
6cb026ef8c
|
|
@ -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">';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user