fix syntx
This commit is contained in:
@@ -194,8 +194,8 @@ long WrenchFamilyPayment( CVars in, CVars &out )
|
||||
pgsql_exec("UPDATE members_payments SET flags = %lu WHERE id = %lu",x["flags"].Long(),payment_id );
|
||||
pgsql_exec("UPDATE family_transfer SET pay_confirm = now() WHERE id = %lu ",confirmation, transfer_id );
|
||||
CVars xrx;
|
||||
load_db_record( xrx, "SELECT * FROM family_transfer WHERE id = %lu ", payment_id );
|
||||
return WrenchFamilyTransferCredit( xrx, out )
|
||||
load_db_record( xrx, "SELECT id AS transfer_id, * FROM family_transfer WHERE id = %lu ", payment_id );
|
||||
return WrenchFamilyTransferCredit( xrx, out ); // let us try credit
|
||||
} else {
|
||||
out["status"] = "Unable to create payment";
|
||||
}
|
||||
@@ -217,7 +217,7 @@ long WrenchFamilyTransferCredit( CVars in, CVars &out ){
|
||||
ULONG payment_id = 0;
|
||||
const char * loc = getenv("REMOTE_ADDR");
|
||||
in["loc"] = loc; in["loc"].set_valid(true);
|
||||
|
||||
long transfer_id = REQ_LONG( in, "transfer_id", 1, -1 );
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user