Commit 7f785f1d authored by N07070's avatar N07070
Browse files

Added a check for sub-1€ donations

parent ac7b196a
......@@ -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->set('amount', $sum);
$status = 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment