- if (SQL_NUMROWS($result) == 1) {
- list($pay) = SQL_FETCHROW($result);
- $time = GET_PAY_POINTS($pay, "time");
- $payment = GET_PAY_POINTS($pay, "payment");
- $VALID = true;
- }
-
- // Free memory
- SQL_FREERESULT($result);
- break;
-
- case "BONUS":
- $result = SQL_QUERY_ESC("SELECT points, time FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id=%s LIMIT 1",
+ if (SQL_NUMROWS($result) == 1) {
+ list($pay) = SQL_FETCHROW($result);
+ $time = getPaymentPoints($pay, 'time');
+ $payment = getPaymentPoints($pay, 'payment');
+ $isValid = true;
+ }
+
+ // Free memory
+ SQL_FREERESULT($result);
+ break;
+
+ case 'BONUS':
+ $result = SQL_QUERY_ESC("SELECT points, time FROM `{!_MYSQL_PREFIX!}_bonus` WHERE `id`=%s LIMIT 1",