donations.php

This commit is contained in:
schrom01 2023-02-16 14:38:15 +01:00
parent 3995f8af9f
commit 3c9dd63f71
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function forwardToDonationPage($amount){
} }
$amount = (float)($_GET["amount"]); $amount = (float)($_GET["amount"]);
if(is_numeric($amount)) { if(is_numeric($amount) && $amount > 0) {
forwardToDonationPage($amount); forwardToDonationPage($amount);
} else { } else {
echo "invalid amount!"; echo "invalid amount!";