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