Fix: Ensure string type for urlencode()
This commit is contained in:
parent
322f85ee64
commit
2ceaaeb2e8
1 changed files with 2 additions and 2 deletions
|
|
@ -689,7 +689,7 @@ if ($resql) {
|
|||
$param .= '&limit='.((int) $limit);
|
||||
}
|
||||
if ($id > 0) {
|
||||
$param .= '&id='.urlencode($id);
|
||||
$param .= '&id='.urlencode((string) ($id));
|
||||
}
|
||||
if ($search_movement) {
|
||||
$param .= '&search_movement='.urlencode($search_movement);
|
||||
|
|
@ -716,7 +716,7 @@ if ($resql) {
|
|||
$param .= '&search_user='.urlencode($search_user);
|
||||
}
|
||||
if ($idproduct > 0) {
|
||||
$param .= '&idproduct='.urlencode($idproduct);
|
||||
$param .= '&idproduct='.urlencode((string) ($idproduct));
|
||||
}
|
||||
// Add $param from extra fields
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
|
||||
|
|
|
|||
Loading…
Reference in a new issue