![]() |
Donation System Problem
First of all I want to clarify that I am using the google translator, so I might not express correctly because I do not speak English (I'm Spanish)
The problem with the donation system is that if I enter an amount of money that I haven`t anyway reaches the user who I send it. Example: I have only $100, but I donated $10000 to X, the other user (X) will get $10000. Also happens with negative numbers. I hope you understand the problem Thank you very much and best regards PS: Im using the version 1.2.2 |
Seems someone forgot to add a check to be sure that the amount being sent isn't more than the user has. x.x
|
Well experiencing some can resolve the problem that you can donate more than you have (I should clarify that I am not a programmer, not absolutely nothing about programming and what I did was rather a bit of "deduction"). Only a conditional solves that problem, but not that of the negative numbers.
Search: Code:
if($_POST) Code:
if($amount < $money){ Code:
else Code:
else |
Well its not that hard to fix, I make sure the bug does not exist in next release. All you have to do is to add a check point which prevent execution of the donation script if the user does not have enough money left.
|
All times are GMT -5. The time now is 10:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.