[FIX] SQL Query Parameters

This commit is contained in:
Sebastian Grewe 2014-05-06 14:38:07 +02:00
parent 360025aeab
commit f596671fc5

View File

@ -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();
}