fix syntx

This commit is contained in:
CHIEFSOFT\ameye
2023-07-28 14:08:55 -04:00
parent 450a733d76
commit 49d045a225
+1 -1
View File
@@ -499,7 +499,7 @@ long WrenchFlutterCreditHook(CVars in, CVars &out) {
if ( out["hook_id"].Long() > 0 && in["status"] == "successful"){
// lets find teh customer now
CVars cc;
if ( load_db_record(cc, "SELECT member_id, uid,amount,currency FROM members_credit WHERE uid = '%s'", xx["txRef"].c_str()> 0){
if ( load_db_record(cc, "SELECT member_id, uid,amount,currency FROM members_credit WHERE uid = '%s'", xx["txRef"].c_str()) > 0){
CVars xn;
xn["member_id"] = cc["member_id"]; xn["member_id"].set_valid(true);
xn["amount"] = cc["amount"]; xn["amount"].set_valid(true);