Fix: Ensure string type for urlencode()
This commit is contained in:
parent
25b0da26e0
commit
dbda44cf20
1 changed files with 3 additions and 3 deletions
|
|
@ -204,10 +204,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));
|
||||
}
|
||||
|
||||
if ($search_status != '') {
|
||||
|
|
@ -227,7 +227,7 @@ if ($id > 0 || !empty($ref)) {
|
|||
print_barre_liste($langs->trans("CustomersOrders"), $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 a new issue