Fix: Ensure string type for urlencode()

This commit is contained in:
MDW 2024-03-08 02:52:01 +01:00
parent 0b0c858af7
commit b6b4d6ccf2
No known key found for this signature in database

View file

@ -67,7 +67,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->hasRight('loan',
$result = $payment->delete($user);
if ($result > 0) {
$db->commit();
header("Location: ".DOL_URL_ROOT."/loan/card.php?id=".urlencode($fk_loan));
header("Location: ".DOL_URL_ROOT."/loan/card.php?id=".urlencode((string) ($fk_loan)));
exit;
} else {
setEventMessages($payment->error, $payment->errors, 'errors');