[FIX] SQL Query Parameters
This commit is contained in:
parent
360025aeab
commit
f596671fc5
@ -56,7 +56,7 @@ class Transaction extends Base {
|
||||
OR ( t.account_id = ? AND t.id <= ? AND b.confirmations = -1 )
|
||||
OR ( t.account_id = ? AND t.id <= ? AND t.type IN ( 'Credit_PPS', 'Donation_PPS', 'Fee_PPS', 'TXFee', 'Debit_MP', 'Debit_AP' ) )
|
||||
)");
|
||||
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $account_id, $txid, $this->config['confirmations'], $account_id, $txid) && $stmt->execute())
|
||||
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiiiii', $account_id, $txid, $this->config['confirmations'], $account_id, $txid, $account_id, $txid) && $stmt->execute())
|
||||
return true;
|
||||
return $this->sqlError();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user