From 4b3534ce61545ebff71b521825f0dd7baeff76dd Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 1 Aug 2013 09:50:46 +0200 Subject: [PATCH] Fixing WHERE clause for getBalance call Addresses #536 --- public/include/classes/transaction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/transaction.class.php b/public/include/classes/transaction.class.php index aa909ef5..7b02561c 100644 --- a/public/include/classes/transaction.class.php +++ b/public/include/classes/transaction.class.php @@ -269,7 +269,7 @@ class Transaction { FROM transactions AS t LEFT JOIN blocks AS b ON t.block_id = b.id - AND t.account_id = ? + WHERE t.account_id = ? "); if ($this->checkStmt($stmt) && $stmt->bind_param("iiiii", $this->config['confirmations'], $this->config['confirmations'], $this->config['confirmations'], $this->config['confirmations'], $account_id) && $stmt->execute() && $result = $stmt->get_result()) return $result->fetch_assoc();