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
136646c96d
commit
3b439c81a1
|
|
@ -1227,9 +1227,9 @@ if ($id == 7 && GETPOST('from') == 'accountancy') {
|
|||
$titlepicto = 'accountancy';
|
||||
}
|
||||
|
||||
$param = '&id='.urlencode($id);
|
||||
$param = '&id='.urlencode((string) ($id));
|
||||
if ($search_country_id || GETPOSTISSET('page') || GETPOST('button_removefilter', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter_x', 'alpha')) {
|
||||
$param .= '&search_country_id='.urlencode($search_country_id ? $search_country_id : -1);
|
||||
$param .= '&search_country_id='.urlencode((string) ($search_country_id ? $search_country_id : -1));
|
||||
}
|
||||
if ($search_code != '') {
|
||||
$param .= '&search_code='.urlencode($search_code);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user