From f596671fc50b9f3425c07a7b99814e336a7ea344 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 6 May 2014 14:38:07 +0200 Subject: [PATCH] [FIX] SQL Query Parameters --- include/classes/transaction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/classes/transaction.class.php b/include/classes/transaction.class.php index 4278f32f..d01b53e3 100644 --- a/include/classes/transaction.class.php +++ b/include/classes/transaction.class.php @@ -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(); }