From 8154daa26bc38e602739a4d493dfb358393eb9c3 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 16 Apr 2015 12:22:07 +0200 Subject: [PATCH] [FIX] Missed a ap_threshold in transaction class --- include/classes/transaction.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/classes/transaction.class.php b/include/classes/transaction.class.php index 194ca486..1aa9221b 100644 --- a/include/classes/transaction.class.php +++ b/include/classes/transaction.class.php @@ -355,7 +355,7 @@ class Transaction extends Base { SELECT a.id, a.username, - a.ap_threshold, + ca.ap_threshold, ca.coin_address, IFNULL( ( @@ -371,9 +371,9 @@ class Transaction extends Base { ON t.account_id = a.id LEFT JOIN " . $this->coin_address->getTableName() . " AS ca ON ca.account_id = a.id - WHERE t.archived = 0 AND a.ap_threshold > 0 AND ca.coin_address IS NOT NULL AND ca.coin_address != '' AND ca.currency = ? + WHERE t.archived = 0 AND ca.ap_threshold > 0 AND ca.coin_address IS NOT NULL AND ca.coin_address != '' AND ca.currency = ? GROUP BY t.account_id - HAVING confirmed > a.ap_threshold AND confirmed > " . $this->config['txfee_auto'] . " + HAVING confirmed > ca.ap_threshold AND confirmed > " . $this->config['txfee_auto'] . " LIMIT ?"); if ($this->checkStmt($stmt) && $stmt->bind_param('si', $this->config['currency'], $limit) && $stmt->execute() && $result = $stmt->get_result()) return $result->fetch_all(MYSQLI_ASSOC);