Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
7f785f1d
Commit
7f785f1d
authored
Dec 16, 2020
by
N07070
Browse files
Added a check for sub-1€ donations
parent
ac7b196a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controller/campaign.php
View file @
7f785f1d
...
...
@@ -86,6 +86,12 @@ class Campaign extends Controller
$sum
=
$f3
->
get
(
'amount_other'
);
}
// If the donation is not a positive amount, we fail the donation.
if
(
$f3
->
get
(
'amount'
)
<
1
)
{
$f3
->
set
(
"error"
,
_
(
"Montant du don invalide, il doit être supérieur à 1€."
));
$f3
->
error
(
"403"
);
}
$f3
->
set
(
'amount'
,
$sum
);
$status
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment