Fix: Ensure string type for urlencode()
This commit is contained in:
parent
0b0c858af7
commit
b6b4d6ccf2
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue