Fix: Ensure string type for urlencode()

This commit is contained in:
MDW
2024-03-08 02:54:24 +01:00
parent a7c5b01ec3
commit 7fd69459df

View File

@@ -185,7 +185,7 @@ if (isModEnabled('agenda')) {
if (isModEnabled('agenda') && ($user->hasRight('agenda', 'myactions', 'read') || $user->hasRight('agenda', 'allaactions', 'read'))) { if (isModEnabled('agenda') && ($user->hasRight('agenda', 'myactions', 'read') || $user->hasRight('agenda', 'allaactions', 'read'))) {
print '<br>'; print '<br>';
$param = '&id='.urlencode($id); $param = '&id='.urlencode((string) ($id));
if ($limit > 0 && $limit != $conf->liste_limit) { if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.((int) $limit); $param .= '&limit='.((int) $limit);