diff --git a/donations/donations.php b/donations/donations.php index 740b21e..c5ed78d 100644 --- a/donations/donations.php +++ b/donations/donations.php @@ -29,7 +29,7 @@ function forwardToDonationPage($amount){ } $amount = (float)($_GET["amount"]); -if(is_numeric($amount)) { +if(is_numeric($amount) && $amount > 0) { forwardToDonationPage($amount); } else { echo "invalid amount!";